/**
* 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 = "2016-11-21")
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.
* <p>
* After returning, the driver will return to {@code autocommit} mode and
* all subsequent changes will be committed immediately.
* </p>
* <p>
* Calling this method when the driver is not in {@code staging} mode is a
* no-op.
* </p>
* @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<Long,Boolean> addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List<Long> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> browseKeys(List<String> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> browseKeysTime(List<String> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> browseKeysTimestr(List<String> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long> 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<String> 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<Long> 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<String> keys, List<Long> 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.
* <p>
* After returning, the driver will return to {@code autocommit} mode and
* all subsequent changes will be committed immediately.
* </p>
* <p>
* This method will return {@code false} if it is called when the driver is
* not in {@code staging} mode.
* </p>
*
* @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 {@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<String> 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<String> 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<String> 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<Long,Set<String>> describeRecords(List<Long> 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<Long,Set<String>> describeRecordsTime(List<Long> 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<Long,Set<String>> describeRecordsTimestr(List<Long> 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}.
*
* <p>
* 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.
* </p>
*
* @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. <code>
* {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3",
* "value4"]}}
* </code> )
* @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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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}.
*
* <p>
* 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.
* </p>
*
* @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. <code>
* {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3",
* "value4"]}}
* </code> )
* @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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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}.
*
* <p>
* 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}.
* </p>
*
* @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. <code>
* {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3",
* "value4"]}}
* </code> )
* @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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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}.
*
* <p>
* 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}.
* </p>
*
* @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. <code>
* {"key": {ADDED: ["value1", "value2"], REMOVED: ["value3",
* "value4"]}}
* </code> )
* @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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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}.
*
* <p>
* 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.
* </p>
*
* @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. <code>
* {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]}
* </code> )
* @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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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}.
*
* <p>
* 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.
* </p>
*
* @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. <code>
* {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]}
* </code> )
* @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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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}.
*
* <p>
* 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}.
* </p>
*
* @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. <code>
* {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]}
* </code> )
* @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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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}.
*
* <p>
* 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}.
* </p>
*
* @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. <code>
* {ADDED: ["value1", "value2"], REMOVED: ["value3", "value4"]}
* </code> )
* @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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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}.
*
* <p>
* 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.
* </p>
*
* @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. <code>
* {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}}
* </code>)
* @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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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}.
*
* <p>
* 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.
* </p>
*
* @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. <code>
* {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}}
* </code>)
* @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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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}.
*
* <p>
* 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}.
* </p>
*
* @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. <code>
* {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}}
* </code>)
* @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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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}.
*
* <p>
* 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}.
* </p>
*
* @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. <code>
* {"value1": {ADDED: [1, 2], REMOVED: [3, 4]}}
* </code>)
* @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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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.
*
* <p>
* 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.
* </p>
*
* @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<com.cinchapi.concourse.thrift.ComplexTObject> 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.
*
* <p>
* The AccessToken <em>may</em> expire after a while so clients should be
* prepared to seamlessly login again for active user sessions.
* </p>
*
* @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.
* <p>
* 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.
* </p>
* <p>
* 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.
* </p>
*
* @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<Long> 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<Long,Boolean> insertJsonRecords(String json, List<Long> 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<Long,Boolean> removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List<Long> 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<Long> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectRecords(List<Long> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectRecordsTime(List<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectRecordsTimestr(List<Long> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> selectKeysRecord(List<String> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> selectKeysRecordTime(List<String> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> selectKeysRecordTimestr(List<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysRecords(List<String> keys, List<Long> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> selectKeyRecords(String key, List<Long> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> selectKeyRecordsTime(String key, List<Long> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> selectKeyRecordsTimestr(String key, List<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysRecordsTime(List<String> keys, List<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysRecordsTimestr(List<String> keys, List<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCriteria(List<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCcl(List<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCriteriaTime(List<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCriteriaTimestr(List<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCclTime(List<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCclTimestr(List<String> 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<String,com.cinchapi.concourse.thrift.TObject> getKeysRecord(List<String> 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<String,com.cinchapi.concourse.thrift.TObject> getKeysRecordTime(List<String> 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<String,com.cinchapi.concourse.thrift.TObject> getKeysRecordTimestr(List<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysRecords(List<String> keys, List<Long> 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<Long,com.cinchapi.concourse.thrift.TObject> getKeyRecords(String key, List<Long> 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<Long,com.cinchapi.concourse.thrift.TObject> getKeyRecordsTime(String key, List<Long> 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<Long,com.cinchapi.concourse.thrift.TObject> getKeyRecordsTimestr(String key, List<Long> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysRecordsTime(List<String> keys, List<Long> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysRecordsTimestr(List<String> keys, List<Long> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCriteria(List<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCcl(List<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCriteriaTime(List<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCriteriaTimestr(List<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCclTime(List<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCclTimestr(List<String> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<Long> findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<Long> findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<Long> findKeyOperatorstrValues(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<Long> findKeyOperatorstrValuesTime(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<Long> findKeyOperatorstrValuesTimestr(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> 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<String> 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<Long> 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<Long> 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<Long,Boolean> pingRecords(List<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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 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<Long> 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<String> 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<String> 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<String> 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<Long> 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<String> 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<Long> 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<String> keys, List<Long> 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 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<Long> 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<Long> 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<Long> 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<com.cinchapi.concourse.thrift.ComplexTObject> 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<Long> 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<Long> 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<Long> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> 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<Long> 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<String> 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<String> 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<String> 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<String> keys, List<Long> 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<Long> 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<Long> 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<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> keys, List<Long> 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<Long> 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<Long> 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<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<Long> 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<Long> 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<Long> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> 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<String> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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 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<Client> {
public Factory() {}
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
return new Client(prot);
}
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
return new Client(iprot, oprot);
}
}
public Client(org.apache.thrift.protocol.TProtocol prot)
{
super(prot, prot);
}
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
super(iprot, oprot);
}
public void 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<Long,Boolean> addKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List<Long> 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<Long> 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<Long,Boolean> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<Long,String> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> browseKeys(List<String> 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<String> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> browseKeysTime(List<String> 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<String> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> browseKeysTimestr(List<String> 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<String> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long> 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<Long> 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<String> 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<String> 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<Long> 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<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<Long,Set<String>> describeRecords(List<Long> 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<Long> 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<Long,Set<String>> 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<Long,Set<String>> describeRecordsTime(List<Long> 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<Long> 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<Long,Set<String>> 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<Long,Set<String>> describeRecordsTimestr(List<Long> 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<Long> 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<Long,Set<String>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.ComplexTObject> 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<com.cinchapi.concourse.thrift.ComplexTObject> 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<Long> 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<Long> 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<Long,Boolean> insertJsonRecords(String json, List<Long> 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<Long> 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<Long,Boolean> 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<Long,Boolean> removeKeyValueRecords(String key, com.cinchapi.concourse.thrift.TObject value, List<Long> 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<Long> 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<Long,Boolean> 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<Long> 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<Long> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectRecords(List<Long> 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<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectRecordsTime(List<Long> 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<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectRecordsTimestr(List<Long> 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<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> selectKeysRecord(List<String> 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<String> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> selectKeysRecordTime(List<String> 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<String> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> selectKeysRecordTimestr(List<String> 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<String> 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<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysRecords(List<String> keys, List<Long> 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<String> keys, List<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> selectKeyRecords(String key, List<Long> 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<Long> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> selectKeyRecordsTime(String key, List<Long> 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<Long> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> selectKeyRecordsTimestr(String key, List<Long> 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<Long> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysRecordsTime(List<String> keys, List<Long> 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<String> keys, List<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysRecordsTimestr(List<String> keys, List<Long> 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<String> keys, List<Long> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCriteria(List<String> 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<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCcl(List<String> 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<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCriteriaTime(List<String> 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<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCriteriaTimestr(List<String> 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<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCclTime(List<String> 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<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> selectKeysCclTimestr(List<String> 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<String> 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<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<String,com.cinchapi.concourse.thrift.TObject> getKeysRecord(List<String> 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<String> 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<String,com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> getKeysRecordTime(List<String> 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<String> 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<String,com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> getKeysRecordTimestr(List<String> 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<String> 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<String,com.cinchapi.concourse.thrift.TObject> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysRecords(List<String> keys, List<Long> 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<String> keys, List<Long> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,com.cinchapi.concourse.thrift.TObject> getKeyRecords(String key, List<Long> 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<Long> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> getKeyRecordsTime(String key, List<Long> 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<Long> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> getKeyRecordsTimestr(String key, List<Long> 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<Long> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysRecordsTime(List<String> keys, List<Long> 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<String> keys, List<Long> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysRecordsTimestr(List<String> keys, List<Long> 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<String> keys, List<Long> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCriteria(List<String> 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<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCcl(List<String> 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<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCriteriaTime(List<String> 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<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCriteriaTimestr(List<String> 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<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCclTime(List<String> 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<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getKeysCclTimestr(List<String> 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<String> 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<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> findKeyOperatorstrValues(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> findKeyOperatorstrValuesTime(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> findKeyOperatorstrValuesTimestr(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<Long> 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<Long> 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<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> 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<String> 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<String> 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<String> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long,Boolean> pingRecords(List<Long> 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<Long> 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<Long,Boolean> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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 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<AsyncClient> {
private org.apache.thrift.async.TAsyncClientManager clientManager;
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
this.clientManager = clientManager;
this.protocolFactory = protocolFactory;
}
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
return new AsyncClient(protocolFactory, clientManager, transport);
}
}
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
super(protocolFactory, clientManager, transport);
}
public void 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<Long> 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<Long> 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<Long> 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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<com.cinchapi.concourse.thrift.TObject,Set<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_browseKey();
}
}
public void browseKeys(List<String> 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<String> keys;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public browseKeys_call(List<String> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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_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<com.cinchapi.concourse.thrift.TObject,Set<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_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<com.cinchapi.concourse.thrift.TObject,Set<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_browseKeyTimestr();
}
}
public void browseKeysTime(List<String> 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<String> 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<String> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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_browseKeysTime();
}
}
public void browseKeysTimestr(List<String> 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<String> 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<String> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public clearRecords_call(List<Long> 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<String> 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<String> 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<String> 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<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public clearKeyRecords_call(String key, List<Long> 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<String> keys, List<Long> 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<String> keys;
private List<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public clearKeysRecords_call(List<String> keys, List<Long> 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 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<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_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<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_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<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_describeRecordTimestr();
}
}
public void describeRecords(List<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public describeRecords_call(List<Long> 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<Long,Set<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_describeRecords();
}
}
public void describeRecordsTime(List<Long> 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<Long> 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<Long> 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<Long,Set<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_describeRecordsTime();
}
}
public void describeRecordsTimestr(List<Long> 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<Long> 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<Long> 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<Long,Set<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_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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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_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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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_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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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_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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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_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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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_diffKeyStartstrEndstr();
}
}
public void invokePlugin(String id, String method, List<com.cinchapi.concourse.thrift.ComplexTObject> 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<com.cinchapi.concourse.thrift.ComplexTObject> 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<com.cinchapi.concourse.thrift.ComplexTObject> 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<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_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<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public insertJsonRecords_call(String json, List<Long> 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<Long,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_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<Long> 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<Long> 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<Long> 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<Long,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_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<Long> 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<Long> 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<Long> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<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_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<String,Set<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_selectRecord();
}
}
public void selectRecords(List<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public selectRecords_call(List<Long> 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<Long,Map<String,Set<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_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<String,Set<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_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<String,Set<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_selectRecordTimestr();
}
}
public void selectRecordsTime(List<Long> 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<Long> 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<Long> 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<Long,Map<String,Set<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_selectRecordsTime();
}
}
public void selectRecordsTimestr(List<Long> 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<Long> 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<Long> 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<Long,Map<String,Set<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_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<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_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<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_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<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_selectKeyRecordTimestr();
}
}
public void selectKeysRecord(List<String> 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<String> 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<String> 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<String,Set<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_selectKeysRecord();
}
}
public void selectKeysRecordTime(List<String> 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<String> 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<String> 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<String,Set<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_selectKeysRecordTime();
}
}
public void selectKeysRecordTimestr(List<String> 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<String> 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<String> 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<String,Set<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_selectKeysRecordTimestr();
}
}
public void selectKeysRecords(List<String> keys, List<Long> 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<String> keys;
private List<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public selectKeysRecords_call(List<String> keys, List<Long> 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<Long,Map<String,Set<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_selectKeysRecords();
}
}
public void selectKeyRecords(String key, List<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public selectKeyRecords_call(String key, List<Long> 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<Long,Set<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_selectKeyRecords();
}
}
public void selectKeyRecordsTime(String key, List<Long> 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<Long> 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<Long> 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<Long,Set<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_selectKeyRecordsTime();
}
}
public void selectKeyRecordsTimestr(String key, List<Long> 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<Long> 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<Long> 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<Long,Set<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_selectKeyRecordsTimestr();
}
}
public void selectKeysRecordsTime(List<String> keys, List<Long> 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<String> keys;
private List<Long> 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<String> keys, List<Long> 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<Long,Map<String,Set<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_selectKeysRecordsTime();
}
}
public void selectKeysRecordsTimestr(List<String> keys, List<Long> 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<String> keys;
private List<Long> 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<String> keys, List<Long> 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<Long,Map<String,Set<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_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<Long,Map<String,Set<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_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<Long,Map<String,Set<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_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<Long,Map<String,Set<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_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<Long,Map<String,Set<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_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<Long,Map<String,Set<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_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<Long,Map<String,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long,Set<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_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<Long,Set<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_selectKeyCclTimestr();
}
}
public void selectKeysCriteria(List<String> 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<String> 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<String> 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<Long,Map<String,Set<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_selectKeysCriteria();
}
}
public void selectKeysCcl(List<String> 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<String> 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<String> 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<Long,Map<String,Set<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_selectKeysCcl();
}
}
public void selectKeysCriteriaTime(List<String> 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<String> 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<String> 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<Long,Map<String,Set<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_selectKeysCriteriaTime();
}
}
public void selectKeysCriteriaTimestr(List<String> 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<String> 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<String> 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<Long,Map<String,Set<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_selectKeysCriteriaTimestr();
}
}
public void selectKeysCclTime(List<String> 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<String> 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<String> 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<Long,Map<String,Set<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_selectKeysCclTime();
}
}
public void selectKeysCclTimestr(List<String> 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<String> 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<String> 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<Long,Map<String,Set<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_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<String> 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<String> 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<String> 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<String,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_getKeysRecord();
}
}
public void getKeysRecordTime(List<String> 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<String> 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<String> 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<String,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_getKeysRecordTime();
}
}
public void getKeysRecordTimestr(List<String> 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<String> 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<String> 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<String,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_getKeysRecordTimestr();
}
}
public void getKeysRecords(List<String> keys, List<Long> 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<String> keys;
private List<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public getKeysRecords_call(List<String> keys, List<Long> 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<Long,Map<String,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_getKeysRecords();
}
}
public void getKeyRecords(String key, List<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public getKeyRecords_call(String key, List<Long> 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<Long,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_getKeyRecords();
}
}
public void getKeyRecordsTime(String key, List<Long> 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<Long> 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<Long> 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<Long,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_getKeyRecordsTime();
}
}
public void getKeyRecordsTimestr(String key, List<Long> 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<Long> 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<Long> 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<Long,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_getKeyRecordsTimestr();
}
}
public void getKeysRecordsTime(List<String> keys, List<Long> 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<String> keys;
private List<Long> 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<String> keys, List<Long> 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<Long,Map<String,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_getKeysRecordsTime();
}
}
public void getKeysRecordsTimestr(List<String> keys, List<Long> 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<String> keys;
private List<Long> 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<String> keys, List<Long> 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<Long,Map<String,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_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<Long,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_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<Long,Map<String,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_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<Long,Map<String,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_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<Long,Map<String,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_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<Long,Map<String,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_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<Long,Map<String,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_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<Long,Map<String,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_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<Long,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_getKeyCclTimestr();
}
}
public void getKeysCriteria(List<String> 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<String> 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<String> 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<Long,Map<String,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_getKeysCriteria();
}
}
public void getKeysCcl(List<String> 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<String> 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<String> 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<Long,Map<String,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_getKeysCcl();
}
}
public void getKeysCriteriaTime(List<String> 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<String> 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<String> 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<Long,Map<String,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_getKeysCriteriaTime();
}
}
public void getKeysCriteriaTimestr(List<String> 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<String> 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<String> 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<Long,Map<String,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_getKeysCriteriaTimestr();
}
}
public void getKeysCclTime(List<String> 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<String> 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<String> 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<Long,Map<String,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_getKeysCclTime();
}
}
public void getKeysCclTimestr(List<String> 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<String> 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<String> 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<Long,Map<String,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_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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<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_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<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_findCcl();
}
}
public void findKeyOperatorValues(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<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_findKeyOperatorValues();
}
}
public void findKeyOperatorValuesTime(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<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_findKeyOperatorValuesTime();
}
}
public void findKeyOperatorValuesTimestr(String key, com.cinchapi.concourse.thrift.Operator operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<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_findKeyOperatorValuesTimestr();
}
}
public void findKeyOperatorstrValues(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<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_findKeyOperatorstrValues();
}
}
public void findKeyOperatorstrValuesTime(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<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_findKeyOperatorstrValuesTime();
}
}
public void findKeyOperatorstrValuesTimestr(String key, String operator, List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> 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<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_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<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_search();
}
}
public void revertKeysRecordsTime(List<String> keys, List<Long> 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<String> keys;
private List<Long> 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<String> keys, List<Long> 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<String> keys, List<Long> 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<String> keys;
private List<Long> 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<String> keys, List<Long> 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<String> 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<String> 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<String> 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<String> 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<String> 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<String> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public pingRecords_call(List<Long> 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<Long,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_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<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public sumKeyRecords_call(String key, List<Long> 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<Long> 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<Long> 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<Long> 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<Long> 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<Long> records;
private com.cinchapi.concourse.thrift.AccessToken creds;
private com.cinchapi.concourse.thrift.TransactionToken transaction;
private String environment;
public averageKeyRecords_call(String key, List<Long> 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<Long> 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<Long> 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<Long> 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 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<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
public Processor(I iface) {
super(iface, getProcessMap(new LinkedHashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
}
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
super(iface, getProcessMap(processMap));
}
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
processMap.put("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("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("getServerEnvironment", new getServerEnvironment());
processMap.put("getServerVersion", new getServerVersion());
processMap.put("time", new time());
processMap.put("timePhrase", new timePhrase());
return processMap;
}
public static class abort<I extends Iface> extends org.apache.thrift.ProcessFunction<I, abort_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addKeyValue_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addKeyValueRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addKeyValueRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditRecordStart_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditRecordStartstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditRecordStartEnd_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditRecordStartstrEndstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditKeyRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditKeyRecordStart_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditKeyRecordStartstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditKeyRecordStartEnd_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, auditKeyRecordStartstrEndstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, browseKey_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, browseKeys_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, browseKeyTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, browseKeyTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, browseKeysTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, browseKeysTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, chronologizeKeyRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, chronologizeKeyRecordStart_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, chronologizeKeyRecordStartstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, chronologizeKeyRecordStartEnd_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, chronologizeKeyRecordStartstrEndstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearKeyRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearKeysRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearKeyRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearKeysRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, commit_args> {
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 describeRecord<I extends Iface> extends org.apache.thrift.ProcessFunction<I, describeRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, describeRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, describeRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, describeRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, describeRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, describeRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffRecordStart_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffRecordStartstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffRecordStartEnd_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffRecordStartstrEndstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyRecordStart_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyRecordStartstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyRecordStartEnd_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyRecordStartstrEndstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyStart_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyStartstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyStartEnd_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, diffKeyStartstrEndstr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, invokePlugin_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, login_args> {
public login() {
super("login");
}
public login_args getEmptyArgsInstance() {
return new login_args();
}
protected boolean isOneway() {
return false;
}
public login_result getResult(I iface, login_args args) throws org.apache.thrift.TException {
login_result result = new login_result();
try {
result.success = iface.login(args.username, args.password, args.environment);
} catch (com.cinchapi.concourse.thrift.SecurityException ex) {
result.ex = ex;
}
return result;
}
}
public static class logout<I extends Iface> extends org.apache.thrift.ProcessFunction<I, logout_args> {
public logout() {
super("logout");
}
public logout_args getEmptyArgsInstance() {
return new logout_args();
}
protected boolean isOneway() {
return false;
}
public logout_result getResult(I iface, logout_args args) throws org.apache.thrift.TException {
logout_result result = new logout_result();
try {
iface.logout(args.token, args.environment);
} catch (com.cinchapi.concourse.thrift.SecurityException ex) {
result.ex = ex;
}
return result;
}
}
public static class stage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stage_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertJson_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertJsonRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertJsonRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeKeyValueRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, removeKeyValueRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setKeyValueRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setKeyValue_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setKeyValueRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reconcileKeyRecordValues_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, inventory_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectCriteriaTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectCclTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectCclTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyCriteriaTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyCclTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeyCclTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysCriteriaTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysCclTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, selectKeysCclTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCriteriaTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCclTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCclTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyCriteriaTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyCclTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeyCclTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysCriteriaTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysCclTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getKeysCclTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyKeyValueRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyKeyValueRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyKeyValueRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, jsonifyRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, jsonifyRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, jsonifyRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findKeyOperatorValues_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findKeyOperatorValuesTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findKeyOperatorValuesTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findKeyOperatorstrValues_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findKeyOperatorstrValuesTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findKeyOperatorstrValuesTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, search_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeysRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeysRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeysRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeysRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeyRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeyRecordsTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeyRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, revertKeyRecordTimestr_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pingRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pingRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyAndSwap_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, verifyOrSet_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findOrAddKeyValue_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findOrInsertCriteriaJson_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, findOrInsertCclJson_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKey_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sumKeyCclTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyRecord_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKey_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyRecordTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyRecords_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyRecordsTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyCriteria_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyCcl_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyCriteriaTime_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, averageKeyCclTime_args> {
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 getServerEnvironment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getServerEnvironment_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getServerVersion_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, time_args> {
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<I extends Iface> extends org.apache.thrift.ProcessFunction<I, timePhrase_args> {
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<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
public AsyncProcessor(I iface) {
super(iface, getProcessMap(new LinkedHashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
}
protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
super(iface, getProcessMap(processMap));
}
private static <I extends AsyncIface> Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase,?>> getProcessMap(Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
processMap.put("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("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("getServerEnvironment", new getServerEnvironment());
processMap.put("getServerVersion", new getServerVersion());
processMap.put("time", new time());
processMap.put("timePhrase", new timePhrase());
return processMap;
}
public static class abort<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, abort_args, Void> {
public abort() {
super("abort");
}
public abort_args getEmptyArgsInstance() {
return new abort_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.abort(args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class addKeyValue<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addKeyValue_args, Long> {
public addKeyValue() {
super("addKeyValue");
}
public addKeyValue_args getEmptyArgsInstance() {
return new addKeyValue_args();
}
public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Long>() {
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<Long> resultHandler) throws TException {
iface.addKeyValue(args.key, args.value, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class addKeyValueRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addKeyValueRecord_args, Boolean> {
public addKeyValueRecord() {
super("addKeyValueRecord");
}
public addKeyValueRecord_args getEmptyArgsInstance() {
return new addKeyValueRecord_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.addKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class addKeyValueRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addKeyValueRecords_args, Map<Long,Boolean>> {
public addKeyValueRecords() {
super("addKeyValueRecords");
}
public addKeyValueRecords_args getEmptyArgsInstance() {
return new addKeyValueRecords_args();
}
public AsyncMethodCallback<Map<Long,Boolean>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Boolean>>() {
public void onComplete(Map<Long,Boolean> 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<Map<Long,Boolean>> resultHandler) throws TException {
iface.addKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditRecord_args, Map<Long,String>> {
public auditRecord() {
super("auditRecord");
}
public auditRecord_args getEmptyArgsInstance() {
return new auditRecord_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditRecord(args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditRecordStart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditRecordStart_args, Map<Long,String>> {
public auditRecordStart() {
super("auditRecordStart");
}
public auditRecordStart_args getEmptyArgsInstance() {
return new auditRecordStart_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditRecordStart(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditRecordStartstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditRecordStartstr_args, Map<Long,String>> {
public auditRecordStartstr() {
super("auditRecordStartstr");
}
public auditRecordStartstr_args getEmptyArgsInstance() {
return new auditRecordStartstr_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditRecordStartEnd<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditRecordStartEnd_args, Map<Long,String>> {
public auditRecordStartEnd() {
super("auditRecordStartEnd");
}
public auditRecordStartEnd_args getEmptyArgsInstance() {
return new auditRecordStartEnd_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditRecordStartstrEndstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditRecordStartstrEndstr_args, Map<Long,String>> {
public auditRecordStartstrEndstr() {
super("auditRecordStartstrEndstr");
}
public auditRecordStartstrEndstr_args getEmptyArgsInstance() {
return new auditRecordStartstrEndstr_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditKeyRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditKeyRecord_args, Map<Long,String>> {
public auditKeyRecord() {
super("auditKeyRecord");
}
public auditKeyRecord_args getEmptyArgsInstance() {
return new auditKeyRecord_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditKeyRecordStart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditKeyRecordStart_args, Map<Long,String>> {
public auditKeyRecordStart() {
super("auditKeyRecordStart");
}
public auditKeyRecordStart_args getEmptyArgsInstance() {
return new auditKeyRecordStart_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditKeyRecordStartstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditKeyRecordStartstr_args, Map<Long,String>> {
public auditKeyRecordStartstr() {
super("auditKeyRecordStartstr");
}
public auditKeyRecordStartstr_args getEmptyArgsInstance() {
return new auditKeyRecordStartstr_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditKeyRecordStartEnd<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditKeyRecordStartEnd_args, Map<Long,String>> {
public auditKeyRecordStartEnd() {
super("auditKeyRecordStartEnd");
}
public auditKeyRecordStartEnd_args getEmptyArgsInstance() {
return new auditKeyRecordStartEnd_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class auditKeyRecordStartstrEndstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, auditKeyRecordStartstrEndstr_args, Map<Long,String>> {
public auditKeyRecordStartstrEndstr() {
super("auditKeyRecordStartstrEndstr");
}
public auditKeyRecordStartstrEndstr_args getEmptyArgsInstance() {
return new auditKeyRecordStartstrEndstr_args();
}
public AsyncMethodCallback<Map<Long,String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,String>>() {
public void onComplete(Map<Long,String> 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<Map<Long,String>> resultHandler) throws TException {
iface.auditKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class browseKey<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, browseKey_args, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> {
public browseKey() {
super("browseKey");
}
public browseKey_args getEmptyArgsInstance() {
return new browseKey_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> resultHandler) throws TException {
iface.browseKey(args.key, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class browseKeys<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, browseKeys_args, Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> {
public browseKeys() {
super("browseKeys");
}
public browseKeys_args getEmptyArgsInstance() {
return new browseKeys_args();
}
public AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>>() {
public void onComplete(Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> resultHandler) throws TException {
iface.browseKeys(args.keys, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class browseKeyTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, browseKeyTime_args, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> {
public browseKeyTime() {
super("browseKeyTime");
}
public browseKeyTime_args getEmptyArgsInstance() {
return new browseKeyTime_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> resultHandler) throws TException {
iface.browseKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class browseKeyTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, browseKeyTimestr_args, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> {
public browseKeyTimestr() {
super("browseKeyTimestr");
}
public browseKeyTimestr_args getEmptyArgsInstance() {
return new browseKeyTimestr_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> resultHandler) throws TException {
iface.browseKeyTimestr(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class browseKeysTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, browseKeysTime_args, Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> {
public browseKeysTime() {
super("browseKeysTime");
}
public browseKeysTime_args getEmptyArgsInstance() {
return new browseKeysTime_args();
}
public AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>>() {
public void onComplete(Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> resultHandler) throws TException {
iface.browseKeysTime(args.keys, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class browseKeysTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, browseKeysTimestr_args, Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> {
public browseKeysTimestr() {
super("browseKeysTimestr");
}
public browseKeysTimestr_args getEmptyArgsInstance() {
return new browseKeysTimestr_args();
}
public AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>>() {
public void onComplete(Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>> resultHandler) throws TException {
iface.browseKeysTimestr(args.keys, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class chronologizeKeyRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, chronologizeKeyRecord_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public chronologizeKeyRecord() {
super("chronologizeKeyRecord");
}
public chronologizeKeyRecord_args getEmptyArgsInstance() {
return new chronologizeKeyRecord_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.chronologizeKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class chronologizeKeyRecordStart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, chronologizeKeyRecordStart_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public chronologizeKeyRecordStart() {
super("chronologizeKeyRecordStart");
}
public chronologizeKeyRecordStart_args getEmptyArgsInstance() {
return new chronologizeKeyRecordStart_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.chronologizeKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class chronologizeKeyRecordStartstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, chronologizeKeyRecordStartstr_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public chronologizeKeyRecordStartstr() {
super("chronologizeKeyRecordStartstr");
}
public chronologizeKeyRecordStartstr_args getEmptyArgsInstance() {
return new chronologizeKeyRecordStartstr_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.chronologizeKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class chronologizeKeyRecordStartEnd<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, chronologizeKeyRecordStartEnd_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public chronologizeKeyRecordStartEnd() {
super("chronologizeKeyRecordStartEnd");
}
public chronologizeKeyRecordStartEnd_args getEmptyArgsInstance() {
return new chronologizeKeyRecordStartEnd_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.chronologizeKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class chronologizeKeyRecordStartstrEndstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, chronologizeKeyRecordStartstrEndstr_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public chronologizeKeyRecordStartstrEndstr() {
super("chronologizeKeyRecordStartstrEndstr");
}
public chronologizeKeyRecordStartstrEndstr_args getEmptyArgsInstance() {
return new chronologizeKeyRecordStartstrEndstr_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.chronologizeKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class clearRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clearRecord_args, Void> {
public clearRecord() {
super("clearRecord");
}
public clearRecord_args getEmptyArgsInstance() {
return new clearRecord_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.clearRecord(args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class clearRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clearRecords_args, Void> {
public clearRecords() {
super("clearRecords");
}
public clearRecords_args getEmptyArgsInstance() {
return new clearRecords_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.clearRecords(args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class clearKeyRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clearKeyRecord_args, Void> {
public clearKeyRecord() {
super("clearKeyRecord");
}
public clearKeyRecord_args getEmptyArgsInstance() {
return new clearKeyRecord_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.clearKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class clearKeysRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clearKeysRecord_args, Void> {
public clearKeysRecord() {
super("clearKeysRecord");
}
public clearKeysRecord_args getEmptyArgsInstance() {
return new clearKeysRecord_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.clearKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class clearKeyRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clearKeyRecords_args, Void> {
public clearKeyRecords() {
super("clearKeyRecords");
}
public clearKeyRecords_args getEmptyArgsInstance() {
return new clearKeyRecords_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.clearKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class clearKeysRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, clearKeysRecords_args, Void> {
public clearKeysRecords() {
super("clearKeysRecords");
}
public clearKeysRecords_args getEmptyArgsInstance() {
return new clearKeysRecords_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.clearKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class commit<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, commit_args, Boolean> {
public commit() {
super("commit");
}
public commit_args getEmptyArgsInstance() {
return new commit_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.commit(args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class describeRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, describeRecord_args, Set<String>> {
public describeRecord() {
super("describeRecord");
}
public describeRecord_args getEmptyArgsInstance() {
return new describeRecord_args();
}
public AsyncMethodCallback<Set<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<String>>() {
public void onComplete(Set<String> 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<Set<String>> resultHandler) throws TException {
iface.describeRecord(args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class describeRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, describeRecordTime_args, Set<String>> {
public describeRecordTime() {
super("describeRecordTime");
}
public describeRecordTime_args getEmptyArgsInstance() {
return new describeRecordTime_args();
}
public AsyncMethodCallback<Set<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<String>>() {
public void onComplete(Set<String> 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<Set<String>> resultHandler) throws TException {
iface.describeRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class describeRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, describeRecordTimestr_args, Set<String>> {
public describeRecordTimestr() {
super("describeRecordTimestr");
}
public describeRecordTimestr_args getEmptyArgsInstance() {
return new describeRecordTimestr_args();
}
public AsyncMethodCallback<Set<String>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<String>>() {
public void onComplete(Set<String> 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<Set<String>> resultHandler) throws TException {
iface.describeRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class describeRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, describeRecords_args, Map<Long,Set<String>>> {
public describeRecords() {
super("describeRecords");
}
public describeRecords_args getEmptyArgsInstance() {
return new describeRecords_args();
}
public AsyncMethodCallback<Map<Long,Set<String>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<String>>>() {
public void onComplete(Map<Long,Set<String>> 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<Map<Long,Set<String>>> resultHandler) throws TException {
iface.describeRecords(args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class describeRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, describeRecordsTime_args, Map<Long,Set<String>>> {
public describeRecordsTime() {
super("describeRecordsTime");
}
public describeRecordsTime_args getEmptyArgsInstance() {
return new describeRecordsTime_args();
}
public AsyncMethodCallback<Map<Long,Set<String>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<String>>>() {
public void onComplete(Map<Long,Set<String>> 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<Map<Long,Set<String>>> resultHandler) throws TException {
iface.describeRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class describeRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, describeRecordsTimestr_args, Map<Long,Set<String>>> {
public describeRecordsTimestr() {
super("describeRecordsTimestr");
}
public describeRecordsTimestr_args getEmptyArgsInstance() {
return new describeRecordsTimestr_args();
}
public AsyncMethodCallback<Map<Long,Set<String>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<String>>>() {
public void onComplete(Map<Long,Set<String>> 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<Map<Long,Set<String>>> resultHandler) throws TException {
iface.describeRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffRecordStart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffRecordStart_args, Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public diffRecordStart() {
super("diffRecordStart");
}
public diffRecordStart_args getEmptyArgsInstance() {
return new diffRecordStart_args();
}
public AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.diffRecordStart(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffRecordStartstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffRecordStartstr_args, Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public diffRecordStartstr() {
super("diffRecordStartstr");
}
public diffRecordStartstr_args getEmptyArgsInstance() {
return new diffRecordStartstr_args();
}
public AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.diffRecordStartstr(args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffRecordStartEnd<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffRecordStartEnd_args, Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public diffRecordStartEnd() {
super("diffRecordStartEnd");
}
public diffRecordStartEnd_args getEmptyArgsInstance() {
return new diffRecordStartEnd_args();
}
public AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.diffRecordStartEnd(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffRecordStartstrEndstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffRecordStartstrEndstr_args, Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public diffRecordStartstrEndstr() {
super("diffRecordStartstrEndstr");
}
public diffRecordStartstrEndstr_args getEmptyArgsInstance() {
return new diffRecordStartstrEndstr_args();
}
public AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.diffRecordStartstrEndstr(args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyRecordStart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyRecordStart_args, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> {
public diffKeyRecordStart() {
super("diffKeyRecordStart");
}
public diffKeyRecordStart_args getEmptyArgsInstance() {
return new diffKeyRecordStart_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.diffKeyRecordStart(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyRecordStartstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyRecordStartstr_args, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> {
public diffKeyRecordStartstr() {
super("diffKeyRecordStartstr");
}
public diffKeyRecordStartstr_args getEmptyArgsInstance() {
return new diffKeyRecordStartstr_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.diffKeyRecordStartstr(args.key, args.record, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyRecordStartEnd<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyRecordStartEnd_args, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> {
public diffKeyRecordStartEnd() {
super("diffKeyRecordStartEnd");
}
public diffKeyRecordStartEnd_args getEmptyArgsInstance() {
return new diffKeyRecordStartEnd_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.diffKeyRecordStartEnd(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyRecordStartstrEndstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyRecordStartstrEndstr_args, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> {
public diffKeyRecordStartstrEndstr() {
super("diffKeyRecordStartstrEndstr");
}
public diffKeyRecordStartstrEndstr_args getEmptyArgsInstance() {
return new diffKeyRecordStartstrEndstr_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.diffKeyRecordStartstrEndstr(args.key, args.record, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyStart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyStart_args, Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> {
public diffKeyStart() {
super("diffKeyStart");
}
public diffKeyStart_args getEmptyArgsInstance() {
return new diffKeyStart_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> resultHandler) throws TException {
iface.diffKeyStart(args.key, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyStartstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyStartstr_args, Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> {
public diffKeyStartstr() {
super("diffKeyStartstr");
}
public diffKeyStartstr_args getEmptyArgsInstance() {
return new diffKeyStartstr_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> resultHandler) throws TException {
iface.diffKeyStartstr(args.key, args.start, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyStartEnd<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyStartEnd_args, Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> {
public diffKeyStartEnd() {
super("diffKeyStartEnd");
}
public diffKeyStartEnd_args getEmptyArgsInstance() {
return new diffKeyStartEnd_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> resultHandler) throws TException {
iface.diffKeyStartEnd(args.key, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class diffKeyStartstrEndstr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, diffKeyStartstrEndstr_args, Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> {
public diffKeyStartstrEndstr() {
super("diffKeyStartstrEndstr");
}
public diffKeyStartstrEndstr_args getEmptyArgsInstance() {
return new diffKeyStartstrEndstr_args();
}
public AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>>() {
public void onComplete(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>> resultHandler) throws TException {
iface.diffKeyStartstrEndstr(args.key, args.start, args.tend, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class invokePlugin<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, invokePlugin_args, com.cinchapi.concourse.thrift.ComplexTObject> {
public invokePlugin() {
super("invokePlugin");
}
public invokePlugin_args getEmptyArgsInstance() {
return new invokePlugin_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.ComplexTObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.ComplexTObject>() {
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<com.cinchapi.concourse.thrift.ComplexTObject> resultHandler) throws TException {
iface.invokePlugin(args.id, args.method, args.params, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class login<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, login_args, com.cinchapi.concourse.thrift.AccessToken> {
public login() {
super("login");
}
public login_args getEmptyArgsInstance() {
return new login_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.AccessToken> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.AccessToken>() {
public void onComplete(com.cinchapi.concourse.thrift.AccessToken o) {
login_result result = new login_result();
result.success = o;
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
login_result result = new login_result();
if (e instanceof com.cinchapi.concourse.thrift.SecurityException) {
result.ex = (com.cinchapi.concourse.thrift.SecurityException) e;
result.setExIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, login_args args, org.apache.thrift.async.AsyncMethodCallback<com.cinchapi.concourse.thrift.AccessToken> resultHandler) throws TException {
iface.login(args.username, args.password, args.environment,resultHandler);
}
}
public static class logout<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, logout_args, Void> {
public logout() {
super("logout");
}
public logout_args getEmptyArgsInstance() {
return new logout_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
logout_result result = new logout_result();
try {
fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
return;
} catch (Exception e) {
LOGGER.error("Exception writing to internal frame buffer", e);
}
fb.close();
}
public void onError(Exception e) {
byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
org.apache.thrift.TBase msg;
logout_result result = new logout_result();
if (e instanceof com.cinchapi.concourse.thrift.SecurityException) {
result.ex = (com.cinchapi.concourse.thrift.SecurityException) e;
result.setExIsSet(true);
msg = result;
}
else
{
msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
}
try {
fcall.sendResponse(fb,msg,msgType,seqid);
return;
} catch (Exception ex) {
LOGGER.error("Exception writing to internal frame buffer", ex);
}
fb.close();
}
};
}
protected boolean isOneway() {
return false;
}
public void start(I iface, logout_args args, org.apache.thrift.async.AsyncMethodCallback<Void> resultHandler) throws TException {
iface.logout(args.token, args.environment,resultHandler);
}
}
public static class stage<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stage_args, com.cinchapi.concourse.thrift.TransactionToken> {
public stage() {
super("stage");
}
public stage_args getEmptyArgsInstance() {
return new stage_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TransactionToken> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TransactionToken>() {
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<com.cinchapi.concourse.thrift.TransactionToken> resultHandler) throws TException {
iface.stage(args.token, args.environment,resultHandler);
}
}
public static class insertJson<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, insertJson_args, Set<Long>> {
public insertJson() {
super("insertJson");
}
public insertJson_args getEmptyArgsInstance() {
return new insertJson_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.insertJson(args.json, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class insertJsonRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, insertJsonRecord_args, Boolean> {
public insertJsonRecord() {
super("insertJsonRecord");
}
public insertJsonRecord_args getEmptyArgsInstance() {
return new insertJsonRecord_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.insertJsonRecord(args.json, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class insertJsonRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, insertJsonRecords_args, Map<Long,Boolean>> {
public insertJsonRecords() {
super("insertJsonRecords");
}
public insertJsonRecords_args getEmptyArgsInstance() {
return new insertJsonRecords_args();
}
public AsyncMethodCallback<Map<Long,Boolean>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Boolean>>() {
public void onComplete(Map<Long,Boolean> 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<Map<Long,Boolean>> resultHandler) throws TException {
iface.insertJsonRecords(args.json, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class removeKeyValueRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeKeyValueRecord_args, Boolean> {
public removeKeyValueRecord() {
super("removeKeyValueRecord");
}
public removeKeyValueRecord_args getEmptyArgsInstance() {
return new removeKeyValueRecord_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.removeKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class removeKeyValueRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, removeKeyValueRecords_args, Map<Long,Boolean>> {
public removeKeyValueRecords() {
super("removeKeyValueRecords");
}
public removeKeyValueRecords_args getEmptyArgsInstance() {
return new removeKeyValueRecords_args();
}
public AsyncMethodCallback<Map<Long,Boolean>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Boolean>>() {
public void onComplete(Map<Long,Boolean> 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<Map<Long,Boolean>> resultHandler) throws TException {
iface.removeKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class setKeyValueRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setKeyValueRecord_args, Void> {
public setKeyValueRecord() {
super("setKeyValueRecord");
}
public setKeyValueRecord_args getEmptyArgsInstance() {
return new setKeyValueRecord_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.setKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class setKeyValue<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setKeyValue_args, Long> {
public setKeyValue() {
super("setKeyValue");
}
public setKeyValue_args getEmptyArgsInstance() {
return new setKeyValue_args();
}
public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Long>() {
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<Long> resultHandler) throws TException {
iface.setKeyValue(args.key, args.value, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class setKeyValueRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setKeyValueRecords_args, Void> {
public setKeyValueRecords() {
super("setKeyValueRecords");
}
public setKeyValueRecords_args getEmptyArgsInstance() {
return new setKeyValueRecords_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.setKeyValueRecords(args.key, args.value, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class reconcileKeyRecordValues<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, reconcileKeyRecordValues_args, Void> {
public reconcileKeyRecordValues() {
super("reconcileKeyRecordValues");
}
public reconcileKeyRecordValues_args getEmptyArgsInstance() {
return new reconcileKeyRecordValues_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.reconcileKeyRecordValues(args.key, args.record, args.values, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class inventory<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, inventory_args, Set<Long>> {
public inventory() {
super("inventory");
}
public inventory_args getEmptyArgsInstance() {
return new inventory_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.inventory(args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectRecord_args, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectRecord() {
super("selectRecord");
}
public selectRecord_args getEmptyArgsInstance() {
return new selectRecord_args();
}
public AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectRecord(args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectRecords_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectRecords() {
super("selectRecords");
}
public selectRecords_args getEmptyArgsInstance() {
return new selectRecords_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectRecords(args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectRecordTime_args, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectRecordTime() {
super("selectRecordTime");
}
public selectRecordTime_args getEmptyArgsInstance() {
return new selectRecordTime_args();
}
public AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectRecordTime(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectRecordTimestr_args, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectRecordTimestr() {
super("selectRecordTimestr");
}
public selectRecordTimestr_args getEmptyArgsInstance() {
return new selectRecordTimestr_args();
}
public AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectRecordTimestr(args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectRecordsTime_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectRecordsTime() {
super("selectRecordsTime");
}
public selectRecordsTime_args getEmptyArgsInstance() {
return new selectRecordsTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectRecordsTime(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectRecordsTimestr_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectRecordsTimestr() {
super("selectRecordsTimestr");
}
public selectRecordsTimestr_args getEmptyArgsInstance() {
return new selectRecordsTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectRecordsTimestr(args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyRecord_args, Set<com.cinchapi.concourse.thrift.TObject>> {
public selectKeyRecord() {
super("selectKeyRecord");
}
public selectKeyRecord_args getEmptyArgsInstance() {
return new selectKeyRecord_args();
}
public AsyncMethodCallback<Set<com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Set<com.cinchapi.concourse.thrift.TObject> 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<Set<com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.selectKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyRecordTime_args, Set<com.cinchapi.concourse.thrift.TObject>> {
public selectKeyRecordTime() {
super("selectKeyRecordTime");
}
public selectKeyRecordTime_args getEmptyArgsInstance() {
return new selectKeyRecordTime_args();
}
public AsyncMethodCallback<Set<com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Set<com.cinchapi.concourse.thrift.TObject> 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<Set<com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.selectKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyRecordTimestr_args, Set<com.cinchapi.concourse.thrift.TObject>> {
public selectKeyRecordTimestr() {
super("selectKeyRecordTimestr");
}
public selectKeyRecordTimestr_args getEmptyArgsInstance() {
return new selectKeyRecordTimestr_args();
}
public AsyncMethodCallback<Set<com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Set<com.cinchapi.concourse.thrift.TObject> 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<Set<com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.selectKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysRecord_args, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeysRecord() {
super("selectKeysRecord");
}
public selectKeysRecord_args getEmptyArgsInstance() {
return new selectKeysRecord_args();
}
public AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysRecordTime_args, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeysRecordTime() {
super("selectKeysRecordTime");
}
public selectKeysRecordTime_args getEmptyArgsInstance() {
return new selectKeysRecordTime_args();
}
public AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysRecordTimestr_args, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeysRecordTimestr() {
super("selectKeysRecordTimestr");
}
public selectKeysRecordTimestr_args getEmptyArgsInstance() {
return new selectKeysRecordTimestr_args();
}
public AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<String,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysRecords_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysRecords() {
super("selectKeysRecords");
}
public selectKeysRecords_args getEmptyArgsInstance() {
return new selectKeysRecords_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyRecords_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyRecords() {
super("selectKeyRecords");
}
public selectKeyRecords_args getEmptyArgsInstance() {
return new selectKeyRecords_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyRecordsTime_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyRecordsTime() {
super("selectKeyRecordsTime");
}
public selectKeyRecordsTime_args getEmptyArgsInstance() {
return new selectKeyRecordsTime_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyRecordsTimestr_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyRecordsTimestr() {
super("selectKeyRecordsTimestr");
}
public selectKeyRecordsTimestr_args getEmptyArgsInstance() {
return new selectKeyRecordsTimestr_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysRecordsTime_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysRecordsTime() {
super("selectKeysRecordsTime");
}
public selectKeysRecordsTime_args getEmptyArgsInstance() {
return new selectKeysRecordsTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysRecordsTimestr_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysRecordsTimestr() {
super("selectKeysRecordsTimestr");
}
public selectKeysRecordsTimestr_args getEmptyArgsInstance() {
return new selectKeysRecordsTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectCriteria_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectCriteria() {
super("selectCriteria");
}
public selectCriteria_args getEmptyArgsInstance() {
return new selectCriteria_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectCriteria(args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectCcl_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectCcl() {
super("selectCcl");
}
public selectCcl_args getEmptyArgsInstance() {
return new selectCcl_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectCcl(args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectCriteriaTime_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectCriteriaTime() {
super("selectCriteriaTime");
}
public selectCriteriaTime_args getEmptyArgsInstance() {
return new selectCriteriaTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectCriteriaTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectCriteriaTimestr_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectCriteriaTimestr() {
super("selectCriteriaTimestr");
}
public selectCriteriaTimestr_args getEmptyArgsInstance() {
return new selectCriteriaTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectCclTime_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectCclTime() {
super("selectCclTime");
}
public selectCclTime_args getEmptyArgsInstance() {
return new selectCclTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectCclTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectCclTimestr_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectCclTimestr() {
super("selectCclTimestr");
}
public selectCclTimestr_args getEmptyArgsInstance() {
return new selectCclTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyCriteria_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyCriteria() {
super("selectKeyCriteria");
}
public selectKeyCriteria_args getEmptyArgsInstance() {
return new selectKeyCriteria_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyCcl_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyCcl() {
super("selectKeyCcl");
}
public selectKeyCcl_args getEmptyArgsInstance() {
return new selectKeyCcl_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyCriteriaTime_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyCriteriaTime() {
super("selectKeyCriteriaTime");
}
public selectKeyCriteriaTime_args getEmptyArgsInstance() {
return new selectKeyCriteriaTime_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyCriteriaTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyCriteriaTimestr_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyCriteriaTimestr() {
super("selectKeyCriteriaTimestr");
}
public selectKeyCriteriaTimestr_args getEmptyArgsInstance() {
return new selectKeyCriteriaTimestr_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyCclTime_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyCclTime() {
super("selectKeyCclTime");
}
public selectKeyCclTime_args getEmptyArgsInstance() {
return new selectKeyCclTime_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeyCclTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeyCclTimestr_args, Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> {
public selectKeyCclTimestr() {
super("selectKeyCclTimestr");
}
public selectKeyCclTimestr_args getEmptyArgsInstance() {
return new selectKeyCclTimestr_args();
}
public AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Set<com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.selectKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysCriteria_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysCriteria() {
super("selectKeysCriteria");
}
public selectKeysCriteria_args getEmptyArgsInstance() {
return new selectKeysCriteria_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysCcl_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysCcl() {
super("selectKeysCcl");
}
public selectKeysCcl_args getEmptyArgsInstance() {
return new selectKeysCcl_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysCriteriaTime_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysCriteriaTime() {
super("selectKeysCriteriaTime");
}
public selectKeysCriteriaTime_args getEmptyArgsInstance() {
return new selectKeysCriteriaTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysCriteriaTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysCriteriaTimestr_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysCriteriaTimestr() {
super("selectKeysCriteriaTimestr");
}
public selectKeysCriteriaTimestr_args getEmptyArgsInstance() {
return new selectKeysCriteriaTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysCclTime_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysCclTime() {
super("selectKeysCclTime");
}
public selectKeysCclTime_args getEmptyArgsInstance() {
return new selectKeysCclTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class selectKeysCclTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, selectKeysCclTimestr_args, Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> {
public selectKeysCclTimestr() {
super("selectKeysCclTimestr");
}
public selectKeysCclTimestr_args getEmptyArgsInstance() {
return new selectKeysCclTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>>() {
public void onComplete(Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> 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<Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>> resultHandler) throws TException {
iface.selectKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyRecord_args, com.cinchapi.concourse.thrift.TObject> {
public getKeyRecord() {
super("getKeyRecord");
}
public getKeyRecord_args getEmptyArgsInstance() {
return new getKeyRecord_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.getKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyRecordTime_args, com.cinchapi.concourse.thrift.TObject> {
public getKeyRecordTime() {
super("getKeyRecordTime");
}
public getKeyRecordTime_args getEmptyArgsInstance() {
return new getKeyRecordTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.getKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyRecordTimestr_args, com.cinchapi.concourse.thrift.TObject> {
public getKeyRecordTimestr() {
super("getKeyRecordTimestr");
}
public getKeyRecordTimestr_args getEmptyArgsInstance() {
return new getKeyRecordTimestr_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.getKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysRecord_args, Map<String,com.cinchapi.concourse.thrift.TObject>> {
public getKeysRecord() {
super("getKeysRecord");
}
public getKeysRecord_args getEmptyArgsInstance() {
return new getKeysRecord_args();
}
public AsyncMethodCallback<Map<String,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<String,com.cinchapi.concourse.thrift.TObject> 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<Map<String,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeysRecord(args.keys, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysRecordTime_args, Map<String,com.cinchapi.concourse.thrift.TObject>> {
public getKeysRecordTime() {
super("getKeysRecordTime");
}
public getKeysRecordTime_args getEmptyArgsInstance() {
return new getKeysRecordTime_args();
}
public AsyncMethodCallback<Map<String,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<String,com.cinchapi.concourse.thrift.TObject> 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<Map<String,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysRecordTimestr_args, Map<String,com.cinchapi.concourse.thrift.TObject>> {
public getKeysRecordTimestr() {
super("getKeysRecordTimestr");
}
public getKeysRecordTimestr_args getEmptyArgsInstance() {
return new getKeysRecordTimestr_args();
}
public AsyncMethodCallback<Map<String,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<String,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<String,com.cinchapi.concourse.thrift.TObject> 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<Map<String,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysRecords_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysRecords() {
super("getKeysRecords");
}
public getKeysRecords_args getEmptyArgsInstance() {
return new getKeysRecords_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysRecords(args.keys, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyRecords_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyRecords() {
super("getKeyRecords");
}
public getKeyRecords_args getEmptyArgsInstance() {
return new getKeyRecords_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyRecordsTime_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyRecordsTime() {
super("getKeyRecordsTime");
}
public getKeyRecordsTime_args getEmptyArgsInstance() {
return new getKeyRecordsTime_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyRecordsTimestr_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyRecordsTimestr() {
super("getKeyRecordsTimestr");
}
public getKeyRecordsTimestr_args getEmptyArgsInstance() {
return new getKeyRecordsTimestr_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysRecordsTime_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysRecordsTime() {
super("getKeysRecordsTime");
}
public getKeysRecordsTime_args getEmptyArgsInstance() {
return new getKeysRecordsTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysRecordsTimestr_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysRecordsTimestr() {
super("getKeysRecordsTimestr");
}
public getKeysRecordsTimestr_args getEmptyArgsInstance() {
return new getKeysRecordsTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyCriteria_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyCriteria() {
super("getKeyCriteria");
}
public getKeyCriteria_args getEmptyArgsInstance() {
return new getKeyCriteria_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getCriteria_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getCriteria() {
super("getCriteria");
}
public getCriteria_args getEmptyArgsInstance() {
return new getCriteria_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getCriteria(args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getCcl_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getCcl() {
super("getCcl");
}
public getCcl_args getEmptyArgsInstance() {
return new getCcl_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getCcl(args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getCriteriaTime_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getCriteriaTime() {
super("getCriteriaTime");
}
public getCriteriaTime_args getEmptyArgsInstance() {
return new getCriteriaTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getCriteriaTime(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getCriteriaTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getCriteriaTimestr_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getCriteriaTimestr() {
super("getCriteriaTimestr");
}
public getCriteriaTimestr_args getEmptyArgsInstance() {
return new getCriteriaTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getCriteriaTimestr(args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getCclTime_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getCclTime() {
super("getCclTime");
}
public getCclTime_args getEmptyArgsInstance() {
return new getCclTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getCclTime(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getCclTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getCclTimestr_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getCclTimestr() {
super("getCclTimestr");
}
public getCclTimestr_args getEmptyArgsInstance() {
return new getCclTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getCclTimestr(args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyCcl_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyCcl() {
super("getKeyCcl");
}
public getKeyCcl_args getEmptyArgsInstance() {
return new getKeyCcl_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyCriteriaTime_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyCriteriaTime() {
super("getKeyCriteriaTime");
}
public getKeyCriteriaTime_args getEmptyArgsInstance() {
return new getKeyCriteriaTime_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyCriteriaTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyCriteriaTimestr_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyCriteriaTimestr() {
super("getKeyCriteriaTimestr");
}
public getKeyCriteriaTimestr_args getEmptyArgsInstance() {
return new getKeyCriteriaTimestr_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyCriteriaTimestr(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyCclTime_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyCclTime() {
super("getKeyCclTime");
}
public getKeyCclTime_args getEmptyArgsInstance() {
return new getKeyCclTime_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeyCclTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeyCclTimestr_args, Map<Long,com.cinchapi.concourse.thrift.TObject>> {
public getKeyCclTimestr() {
super("getKeyCclTimestr");
}
public getKeyCclTimestr_args getEmptyArgsInstance() {
return new getKeyCclTimestr_args();
}
public AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,com.cinchapi.concourse.thrift.TObject>>() {
public void onComplete(Map<Long,com.cinchapi.concourse.thrift.TObject> 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<Map<Long,com.cinchapi.concourse.thrift.TObject>> resultHandler) throws TException {
iface.getKeyCclTimestr(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysCriteria_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysCriteria() {
super("getKeysCriteria");
}
public getKeysCriteria_args getEmptyArgsInstance() {
return new getKeysCriteria_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysCriteria(args.keys, args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysCcl_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysCcl() {
super("getKeysCcl");
}
public getKeysCcl_args getEmptyArgsInstance() {
return new getKeysCcl_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysCcl(args.keys, args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysCriteriaTime_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysCriteriaTime() {
super("getKeysCriteriaTime");
}
public getKeysCriteriaTime_args getEmptyArgsInstance() {
return new getKeysCriteriaTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysCriteriaTime(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysCriteriaTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysCriteriaTimestr_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysCriteriaTimestr() {
super("getKeysCriteriaTimestr");
}
public getKeysCriteriaTimestr_args getEmptyArgsInstance() {
return new getKeysCriteriaTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysCriteriaTimestr(args.keys, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysCclTime_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysCclTime() {
super("getKeysCclTime");
}
public getKeysCclTime_args getEmptyArgsInstance() {
return new getKeysCclTime_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysCclTime(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getKeysCclTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getKeysCclTimestr_args, Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> {
public getKeysCclTimestr() {
super("getKeysCclTimestr");
}
public getKeysCclTimestr_args getEmptyArgsInstance() {
return new getKeysCclTimestr_args();
}
public AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>>() {
public void onComplete(Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> 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<Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>> resultHandler) throws TException {
iface.getKeysCclTimestr(args.keys, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class verifyKeyValueRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, verifyKeyValueRecord_args, Boolean> {
public verifyKeyValueRecord() {
super("verifyKeyValueRecord");
}
public verifyKeyValueRecord_args getEmptyArgsInstance() {
return new verifyKeyValueRecord_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.verifyKeyValueRecord(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class verifyKeyValueRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, verifyKeyValueRecordTime_args, Boolean> {
public verifyKeyValueRecordTime() {
super("verifyKeyValueRecordTime");
}
public verifyKeyValueRecordTime_args getEmptyArgsInstance() {
return new verifyKeyValueRecordTime_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.verifyKeyValueRecordTime(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class verifyKeyValueRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, verifyKeyValueRecordTimestr_args, Boolean> {
public verifyKeyValueRecordTimestr() {
super("verifyKeyValueRecordTimestr");
}
public verifyKeyValueRecordTimestr_args getEmptyArgsInstance() {
return new verifyKeyValueRecordTimestr_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.verifyKeyValueRecordTimestr(args.key, args.value, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class jsonifyRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, jsonifyRecords_args, String> {
public jsonifyRecords() {
super("jsonifyRecords");
}
public jsonifyRecords_args getEmptyArgsInstance() {
return new jsonifyRecords_args();
}
public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<String>() {
public void onComplete(String o) {
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<String> resultHandler) throws TException {
iface.jsonifyRecords(args.records, args.identifier, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class jsonifyRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, jsonifyRecordsTime_args, String> {
public jsonifyRecordsTime() {
super("jsonifyRecordsTime");
}
public jsonifyRecordsTime_args getEmptyArgsInstance() {
return new jsonifyRecordsTime_args();
}
public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<String>() {
public void onComplete(String o) {
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<String> resultHandler) throws TException {
iface.jsonifyRecordsTime(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class jsonifyRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, jsonifyRecordsTimestr_args, String> {
public jsonifyRecordsTimestr() {
super("jsonifyRecordsTimestr");
}
public jsonifyRecordsTimestr_args getEmptyArgsInstance() {
return new jsonifyRecordsTimestr_args();
}
public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<String>() {
public void onComplete(String o) {
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<String> resultHandler) throws TException {
iface.jsonifyRecordsTimestr(args.records, args.timestamp, args.identifier, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findCriteria_args, Set<Long>> {
public findCriteria() {
super("findCriteria");
}
public findCriteria_args getEmptyArgsInstance() {
return new findCriteria_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findCriteria(args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findCcl_args, Set<Long>> {
public findCcl() {
super("findCcl");
}
public findCcl_args getEmptyArgsInstance() {
return new findCcl_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findCcl(args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findKeyOperatorValues<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findKeyOperatorValues_args, Set<Long>> {
public findKeyOperatorValues() {
super("findKeyOperatorValues");
}
public findKeyOperatorValues_args getEmptyArgsInstance() {
return new findKeyOperatorValues_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findKeyOperatorValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findKeyOperatorValuesTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findKeyOperatorValuesTime_args, Set<Long>> {
public findKeyOperatorValuesTime() {
super("findKeyOperatorValuesTime");
}
public findKeyOperatorValuesTime_args getEmptyArgsInstance() {
return new findKeyOperatorValuesTime_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findKeyOperatorValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findKeyOperatorValuesTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findKeyOperatorValuesTimestr_args, Set<Long>> {
public findKeyOperatorValuesTimestr() {
super("findKeyOperatorValuesTimestr");
}
public findKeyOperatorValuesTimestr_args getEmptyArgsInstance() {
return new findKeyOperatorValuesTimestr_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findKeyOperatorValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findKeyOperatorstrValues<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findKeyOperatorstrValues_args, Set<Long>> {
public findKeyOperatorstrValues() {
super("findKeyOperatorstrValues");
}
public findKeyOperatorstrValues_args getEmptyArgsInstance() {
return new findKeyOperatorstrValues_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findKeyOperatorstrValues(args.key, args.operator, args.values, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findKeyOperatorstrValuesTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findKeyOperatorstrValuesTime_args, Set<Long>> {
public findKeyOperatorstrValuesTime() {
super("findKeyOperatorstrValuesTime");
}
public findKeyOperatorstrValuesTime_args getEmptyArgsInstance() {
return new findKeyOperatorstrValuesTime_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findKeyOperatorstrValuesTime(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findKeyOperatorstrValuesTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findKeyOperatorstrValuesTimestr_args, Set<Long>> {
public findKeyOperatorstrValuesTimestr() {
super("findKeyOperatorstrValuesTimestr");
}
public findKeyOperatorstrValuesTimestr_args getEmptyArgsInstance() {
return new findKeyOperatorstrValuesTimestr_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.findKeyOperatorstrValuesTimestr(args.key, args.operator, args.values, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class search<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, search_args, Set<Long>> {
public search() {
super("search");
}
public search_args getEmptyArgsInstance() {
return new search_args();
}
public AsyncMethodCallback<Set<Long>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Set<Long>>() {
public void onComplete(Set<Long> 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<Set<Long>> resultHandler) throws TException {
iface.search(args.key, args.query, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeysRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeysRecordsTime_args, Void> {
public revertKeysRecordsTime() {
super("revertKeysRecordsTime");
}
public revertKeysRecordsTime_args getEmptyArgsInstance() {
return new revertKeysRecordsTime_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeysRecordsTime(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeysRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeysRecordsTimestr_args, Void> {
public revertKeysRecordsTimestr() {
super("revertKeysRecordsTimestr");
}
public revertKeysRecordsTimestr_args getEmptyArgsInstance() {
return new revertKeysRecordsTimestr_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeysRecordsTimestr(args.keys, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeysRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeysRecordTime_args, Void> {
public revertKeysRecordTime() {
super("revertKeysRecordTime");
}
public revertKeysRecordTime_args getEmptyArgsInstance() {
return new revertKeysRecordTime_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeysRecordTime(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeysRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeysRecordTimestr_args, Void> {
public revertKeysRecordTimestr() {
super("revertKeysRecordTimestr");
}
public revertKeysRecordTimestr_args getEmptyArgsInstance() {
return new revertKeysRecordTimestr_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeysRecordTimestr(args.keys, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeyRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeyRecordsTime_args, Void> {
public revertKeyRecordsTime() {
super("revertKeyRecordsTime");
}
public revertKeyRecordsTime_args getEmptyArgsInstance() {
return new revertKeyRecordsTime_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeyRecordsTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeyRecordsTimestr_args, Void> {
public revertKeyRecordsTimestr() {
super("revertKeyRecordsTimestr");
}
public revertKeyRecordsTimestr_args getEmptyArgsInstance() {
return new revertKeyRecordsTimestr_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeyRecordsTimestr(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeyRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeyRecordTime_args, Void> {
public revertKeyRecordTime() {
super("revertKeyRecordTime");
}
public revertKeyRecordTime_args getEmptyArgsInstance() {
return new revertKeyRecordTime_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class revertKeyRecordTimestr<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, revertKeyRecordTimestr_args, Void> {
public revertKeyRecordTimestr() {
super("revertKeyRecordTimestr");
}
public revertKeyRecordTimestr_args getEmptyArgsInstance() {
return new revertKeyRecordTimestr_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.revertKeyRecordTimestr(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class pingRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pingRecords_args, Map<Long,Boolean>> {
public pingRecords() {
super("pingRecords");
}
public pingRecords_args getEmptyArgsInstance() {
return new pingRecords_args();
}
public AsyncMethodCallback<Map<Long,Boolean>> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Map<Long,Boolean>>() {
public void onComplete(Map<Long,Boolean> 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<Map<Long,Boolean>> resultHandler) throws TException {
iface.pingRecords(args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class pingRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pingRecord_args, Boolean> {
public pingRecord() {
super("pingRecord");
}
public pingRecord_args getEmptyArgsInstance() {
return new pingRecord_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.pingRecord(args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class verifyAndSwap<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, verifyAndSwap_args, Boolean> {
public verifyAndSwap() {
super("verifyAndSwap");
}
public verifyAndSwap_args getEmptyArgsInstance() {
return new verifyAndSwap_args();
}
public AsyncMethodCallback<Boolean> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Boolean>() {
public void onComplete(Boolean o) {
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<Boolean> resultHandler) throws TException {
iface.verifyAndSwap(args.key, args.expected, args.record, args.replacement, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class verifyOrSet<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, verifyOrSet_args, Void> {
public verifyOrSet() {
super("verifyOrSet");
}
public verifyOrSet_args getEmptyArgsInstance() {
return new verifyOrSet_args();
}
public AsyncMethodCallback<Void> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Void>() {
public void onComplete(Void o) {
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<Void> resultHandler) throws TException {
iface.verifyOrSet(args.key, args.value, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findOrAddKeyValue<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findOrAddKeyValue_args, Long> {
public findOrAddKeyValue() {
super("findOrAddKeyValue");
}
public findOrAddKeyValue_args getEmptyArgsInstance() {
return new findOrAddKeyValue_args();
}
public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Long>() {
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<Long> resultHandler) throws TException {
iface.findOrAddKeyValue(args.key, args.value, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findOrInsertCriteriaJson<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findOrInsertCriteriaJson_args, Long> {
public findOrInsertCriteriaJson() {
super("findOrInsertCriteriaJson");
}
public findOrInsertCriteriaJson_args getEmptyArgsInstance() {
return new findOrInsertCriteriaJson_args();
}
public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Long>() {
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<Long> resultHandler) throws TException {
iface.findOrInsertCriteriaJson(args.criteria, args.json, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class findOrInsertCclJson<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, findOrInsertCclJson_args, Long> {
public findOrInsertCclJson() {
super("findOrInsertCclJson");
}
public findOrInsertCclJson_args getEmptyArgsInstance() {
return new findOrInsertCclJson_args();
}
public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Long>() {
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<Long> resultHandler) throws TException {
iface.findOrInsertCclJson(args.ccl, args.json, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyRecord_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyRecord() {
super("sumKeyRecord");
}
public sumKeyRecord_args getEmptyArgsInstance() {
return new sumKeyRecord_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKey<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKey_args, com.cinchapi.concourse.thrift.TObject> {
public sumKey() {
super("sumKey");
}
public sumKey_args getEmptyArgsInstance() {
return new sumKey_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKey(args.key, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyTime_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyTime() {
super("sumKeyTime");
}
public sumKeyTime_args getEmptyArgsInstance() {
return new sumKeyTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyRecordTime_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyRecordTime() {
super("sumKeyRecordTime");
}
public sumKeyRecordTime_args getEmptyArgsInstance() {
return new sumKeyRecordTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyRecords_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyRecords() {
super("sumKeyRecords");
}
public sumKeyRecords_args getEmptyArgsInstance() {
return new sumKeyRecords_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyRecordsTime_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyRecordsTime() {
super("sumKeyRecordsTime");
}
public sumKeyRecordsTime_args getEmptyArgsInstance() {
return new sumKeyRecordsTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyCriteria_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyCriteria() {
super("sumKeyCriteria");
}
public sumKeyCriteria_args getEmptyArgsInstance() {
return new sumKeyCriteria_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyCcl_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyCcl() {
super("sumKeyCcl");
}
public sumKeyCcl_args getEmptyArgsInstance() {
return new sumKeyCcl_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyCriteriaTime_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyCriteriaTime() {
super("sumKeyCriteriaTime");
}
public sumKeyCriteriaTime_args getEmptyArgsInstance() {
return new sumKeyCriteriaTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class sumKeyCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sumKeyCclTime_args, com.cinchapi.concourse.thrift.TObject> {
public sumKeyCclTime() {
super("sumKeyCclTime");
}
public sumKeyCclTime_args getEmptyArgsInstance() {
return new sumKeyCclTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.sumKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyRecord<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyRecord_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyRecord() {
super("averageKeyRecord");
}
public averageKeyRecord_args getEmptyArgsInstance() {
return new averageKeyRecord_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyRecord(args.key, args.record, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKey<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKey_args, com.cinchapi.concourse.thrift.TObject> {
public averageKey() {
super("averageKey");
}
public averageKey_args getEmptyArgsInstance() {
return new averageKey_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKey(args.key, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyTime_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyTime() {
super("averageKeyTime");
}
public averageKeyTime_args getEmptyArgsInstance() {
return new averageKeyTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyTime(args.key, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyRecordTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyRecordTime_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyRecordTime() {
super("averageKeyRecordTime");
}
public averageKeyRecordTime_args getEmptyArgsInstance() {
return new averageKeyRecordTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyRecordTime(args.key, args.record, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyRecords<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyRecords_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyRecords() {
super("averageKeyRecords");
}
public averageKeyRecords_args getEmptyArgsInstance() {
return new averageKeyRecords_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyRecords(args.key, args.records, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyRecordsTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyRecordsTime_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyRecordsTime() {
super("averageKeyRecordsTime");
}
public averageKeyRecordsTime_args getEmptyArgsInstance() {
return new averageKeyRecordsTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyRecordsTime(args.key, args.records, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyCriteria<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyCriteria_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyCriteria() {
super("averageKeyCriteria");
}
public averageKeyCriteria_args getEmptyArgsInstance() {
return new averageKeyCriteria_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyCriteria(args.key, args.criteria, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyCcl<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyCcl_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyCcl() {
super("averageKeyCcl");
}
public averageKeyCcl_args getEmptyArgsInstance() {
return new averageKeyCcl_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyCcl(args.key, args.ccl, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyCriteriaTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyCriteriaTime_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyCriteriaTime() {
super("averageKeyCriteriaTime");
}
public averageKeyCriteriaTime_args getEmptyArgsInstance() {
return new averageKeyCriteriaTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyCriteriaTime(args.key, args.criteria, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class averageKeyCclTime<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, averageKeyCclTime_args, com.cinchapi.concourse.thrift.TObject> {
public averageKeyCclTime() {
super("averageKeyCclTime");
}
public averageKeyCclTime_args getEmptyArgsInstance() {
return new averageKeyCclTime_args();
}
public AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<com.cinchapi.concourse.thrift.TObject>() {
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<com.cinchapi.concourse.thrift.TObject> resultHandler) throws TException {
iface.averageKeyCclTime(args.key, args.ccl, args.timestamp, args.creds, args.transaction, args.environment,resultHandler);
}
}
public static class getServerEnvironment<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getServerEnvironment_args, String> {
public getServerEnvironment() {
super("getServerEnvironment");
}
public getServerEnvironment_args getEmptyArgsInstance() {
return new getServerEnvironment_args();
}
public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<String>() {
public void onComplete(String o) {
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<String> resultHandler) throws TException {
iface.getServerEnvironment(args.creds, args.token, args.environment,resultHandler);
}
}
public static class getServerVersion<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getServerVersion_args, String> {
public getServerVersion() {
super("getServerVersion");
}
public getServerVersion_args getEmptyArgsInstance() {
return new getServerVersion_args();
}
public AsyncMethodCallback<String> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<String>() {
public void onComplete(String o) {
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<String> resultHandler) throws TException {
iface.getServerVersion(resultHandler);
}
}
public static class time<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, time_args, Long> {
public time() {
super("time");
}
public time_args getEmptyArgsInstance() {
return new time_args();
}
public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Long>() {
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<Long> resultHandler) throws TException {
iface.time(args.creds, args.token, args.environment,resultHandler);
}
}
public static class timePhrase<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, timePhrase_args, Long> {
public timePhrase() {
super("timePhrase");
}
public timePhrase_args getEmptyArgsInstance() {
return new timePhrase_args();
}
public AsyncMethodCallback<Long> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
final org.apache.thrift.AsyncProcessFunction fcall = this;
return new AsyncMethodCallback<Long>() {
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<Long> resultHandler) throws TException {
iface.timePhrase(args.phrase, args.creds, args.token, args.environment,resultHandler);
}
}
}
public static class abort_args implements org.apache.thrift.TBase<abort_args, abort_args._Fields>, java.io.Serializable, Cloneable, Comparable<abort_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // CREDS
return CREDS;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<abort_args> {
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<abort_args> {
@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<abort_result, abort_result._Fields>, java.io.Serializable, Cloneable, Comparable<abort_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
return list.hashCode();
}
@Override
public int compareTo(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<abort_result> {
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<abort_result> {
@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<addKeyValue_args, addKeyValue_args._Fields>, java.io.Serializable, Cloneable, Comparable<addKeyValue_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<addKeyValue_args> {
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<addKeyValue_args> {
@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<addKeyValue_result, addKeyValue_result._Fields>, java.io.Serializable, Cloneable, Comparable<addKeyValue_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<addKeyValue_result> {
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<addKeyValue_result> {
@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<addKeyValueRecord_args, addKeyValueRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<addKeyValueRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<addKeyValueRecord_args> {
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<addKeyValueRecord_args> {
@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<addKeyValueRecord_result, addKeyValueRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<addKeyValueRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<addKeyValueRecord_result> {
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<addKeyValueRecord_result> {
@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<addKeyValueRecords_args, addKeyValueRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<addKeyValueRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
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<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public addKeyValueRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<addKeyValueRecords_args> {
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<Long>(_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<addKeyValueRecords_args> {
@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<Long>(_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<addKeyValueRecords_result, addKeyValueRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<addKeyValueRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new addKeyValueRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new addKeyValueRecords_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Boolean> 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 <i>other</i>.
*/
public addKeyValueRecords_result(addKeyValueRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Boolean> __this__success = new LinkedHashMap<Long,Boolean>(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<Long,Boolean>();
}
this.success.put(key, val);
}
public Map<Long,Boolean> getSuccess() {
return this.success;
}
public addKeyValueRecords_result setSuccess(Map<Long,Boolean> 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<addKeyValueRecords_result> {
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<Long,Boolean>(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<Long, Boolean> _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<addKeyValueRecords_result> {
@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<Long, Boolean> _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<Long,Boolean>(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<auditRecord_args, auditRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditRecord_args> {
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<auditRecord_args> {
@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<auditRecord_result, auditRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditRecord_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditRecord_result(auditRecord_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditRecord_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditRecord_result> {
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<Long,String>(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<Long, String> _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<auditRecord_result> {
@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<Long, String> _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<Long,String>(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<auditRecordStart_args, auditRecordStart_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStart_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditRecordStart_args> {
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<auditRecordStart_args> {
@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<auditRecordStart_result, auditRecordStart_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStart_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditRecordStart_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditRecordStart_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditRecordStart_result(auditRecordStart_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditRecordStart_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditRecordStart_result> {
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<Long,String>(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<Long, String> _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<auditRecordStart_result> {
@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<Long, String> _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<Long,String>(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<auditRecordStartstr_args, auditRecordStartstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStartstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditRecordStartstr_args> {
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<auditRecordStartstr_args> {
@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<auditRecordStartstr_result, auditRecordStartstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStartstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditRecordStartstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditRecordStartstr_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditRecordStartstr_result(auditRecordStartstr_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditRecordStartstr_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditRecordStartstr_result> {
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<Long,String>(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<Long, String> _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<auditRecordStartstr_result> {
@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<Long, String> _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<Long,String>(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<auditRecordStartEnd_args, auditRecordStartEnd_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStartEnd_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditRecordStartEnd_args> {
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<auditRecordStartEnd_args> {
@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<auditRecordStartEnd_result, auditRecordStartEnd_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStartEnd_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditRecordStartEnd_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditRecordStartEnd_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditRecordStartEnd_result(auditRecordStartEnd_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditRecordStartEnd_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditRecordStartEnd_result> {
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<Long,String>(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<Long, String> _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<auditRecordStartEnd_result> {
@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<Long, String> _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<Long,String>(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<auditRecordStartstrEndstr_args, auditRecordStartstrEndstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStartstrEndstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditRecordStartstrEndstr_args> {
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<auditRecordStartstrEndstr_args> {
@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<auditRecordStartstrEndstr_result, auditRecordStartstrEndstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditRecordStartstrEndstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditRecordStartstrEndstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditRecordStartstrEndstr_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditRecordStartstrEndstr_result(auditRecordStartstrEndstr_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditRecordStartstrEndstr_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditRecordStartstrEndstr_result> {
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<Long,String>(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<Long, String> _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<auditRecordStartstrEndstr_result> {
@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<Long, String> _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<Long,String>(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<auditKeyRecord_args, auditKeyRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditKeyRecord_args> {
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<auditKeyRecord_args> {
@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<auditKeyRecord_result, auditKeyRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditKeyRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditKeyRecord_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditKeyRecord_result(auditKeyRecord_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditKeyRecord_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditKeyRecord_result> {
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<Long,String>(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<Long, String> _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<auditKeyRecord_result> {
@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<Long, String> _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<Long,String>(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<auditKeyRecordStart_args, auditKeyRecordStart_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStart_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditKeyRecordStart_args> {
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<auditKeyRecordStart_args> {
@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<auditKeyRecordStart_result, auditKeyRecordStart_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStart_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditKeyRecordStart_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditKeyRecordStart_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditKeyRecordStart_result(auditKeyRecordStart_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditKeyRecordStart_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditKeyRecordStart_result> {
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<Long,String>(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<Long, String> _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<auditKeyRecordStart_result> {
@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<Long, String> _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<Long,String>(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<auditKeyRecordStartstr_args, auditKeyRecordStartstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStartstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditKeyRecordStartstr_args> {
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<auditKeyRecordStartstr_args> {
@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<auditKeyRecordStartstr_result, auditKeyRecordStartstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStartstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditKeyRecordStartstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditKeyRecordStartstr_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditKeyRecordStartstr_result(auditKeyRecordStartstr_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditKeyRecordStartstr_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditKeyRecordStartstr_result> {
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<Long,String>(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<Long, String> _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<auditKeyRecordStartstr_result> {
@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<Long, String> _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<Long,String>(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<auditKeyRecordStartEnd_args, auditKeyRecordStartEnd_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStartEnd_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditKeyRecordStartEnd_args> {
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<auditKeyRecordStartEnd_args> {
@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<auditKeyRecordStartEnd_result, auditKeyRecordStartEnd_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStartEnd_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditKeyRecordStartEnd_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditKeyRecordStartEnd_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditKeyRecordStartEnd_result(auditKeyRecordStartEnd_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditKeyRecordStartEnd_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditKeyRecordStartEnd_result> {
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<Long,String>(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<Long, String> _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<auditKeyRecordStartEnd_result> {
@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<Long, String> _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<Long,String>(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<auditKeyRecordStartstrEndstr_args, auditKeyRecordStartstrEndstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStartstrEndstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<auditKeyRecordStartstrEndstr_args> {
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<auditKeyRecordStartstrEndstr_args> {
@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<auditKeyRecordStartstrEndstr_result, auditKeyRecordStartstrEndstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<auditKeyRecordStartstrEndstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new auditKeyRecordStartstrEndstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new auditKeyRecordStartstrEndstr_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public auditKeyRecordStartstrEndstr_result(auditKeyRecordStartstrEndstr_result other) {
if (other.isSetSuccess()) {
Map<Long,String> __this__success = new LinkedHashMap<Long,String>(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<Long,String>();
}
this.success.put(key, val);
}
public Map<Long,String> getSuccess() {
return this.success;
}
public auditKeyRecordStartstrEndstr_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<auditKeyRecordStartstrEndstr_result> {
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<Long,String>(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<Long, String> _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<auditKeyRecordStartstrEndstr_result> {
@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<Long, String> _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<Long,String>(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<browseKey_args, browseKey_args._Fields>, java.io.Serializable, Cloneable, Comparable<browseKey_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<browseKey_args> {
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<browseKey_args> {
@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<browseKey_result, browseKey_result._Fields>, java.io.Serializable, Cloneable, Comparable<browseKey_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKey_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKey_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.TObject,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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 <i>other</i>.
*/
public browseKey_result(browseKey_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey();
Set<Long> 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<Long> __this__success_copy_value = new LinkedHashSet<Long>(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<Long> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> getSuccess() {
return this.success;
}
public browseKey_result setSuccess(Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<browseKey_result> {
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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map118.size);
com.cinchapi.concourse.thrift.TObject _key119;
Set<Long> _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<Long>(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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<browseKey_result> {
@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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map129.size);
com.cinchapi.concourse.thrift.TObject _key130;
Set<Long> _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<Long>(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<browseKeys_args, browseKeys_args._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeys_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeys_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeys_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public browseKeys_args(browseKeys_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public browseKeys_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<browseKeys_args> {
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<String>(_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<browseKeys_args> {
@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<String>(_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<browseKeys_result, browseKeys_result._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeys_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeys_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeys_resultTupleSchemeFactory());
}
public Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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 <i>other</i>.
*/
public browseKeys_result(browseKeys_result other) {
if (other.isSetSuccess()) {
Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> __this__success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(other.success.size());
for (Map.Entry<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element.getKey();
Set<Long> 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<Long> __this__success_copy_value_copy_value = new LinkedHashSet<Long>(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<com.cinchapi.concourse.thrift.TObject,Set<Long>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>();
}
this.success.put(key, val);
}
public Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> getSuccess() {
return this.success;
}
public browseKeys_result setSuccess(Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<browseKeys_result> {
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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(2*_map144.size);
String _key145;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> _val146;
for (int _i147 = 0; _i147 < _map144.size; ++_i147)
{
_key145 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map148 = iprot.readMapBegin();
_val146 = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map148.size);
com.cinchapi.concourse.thrift.TObject _key149;
Set<Long> _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<Long>(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<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> _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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<browseKeys_result> {
@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<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> _iter158 : struct.success.entrySet())
{
oprot.writeString(_iter158.getKey());
{
oprot.writeI32(_iter158.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(2*_map161.size);
String _key162;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> _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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map165.size);
com.cinchapi.concourse.thrift.TObject _key166;
Set<Long> _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<Long>(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<browseKeyTime_args, browseKeyTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeyTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<browseKeyTime_args> {
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<browseKeyTime_args> {
@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<browseKeyTime_result, browseKeyTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeyTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeyTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeyTime_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.TObject,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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 <i>other</i>.
*/
public browseKeyTime_result(browseKeyTime_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey();
Set<Long> 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<Long> __this__success_copy_value = new LinkedHashSet<Long>(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<Long> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> getSuccess() {
return this.success;
}
public browseKeyTime_result setSuccess(Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<browseKeyTime_result> {
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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map172.size);
com.cinchapi.concourse.thrift.TObject _key173;
Set<Long> _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<Long>(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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<browseKeyTime_result> {
@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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map183.size);
com.cinchapi.concourse.thrift.TObject _key184;
Set<Long> _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<Long>(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<browseKeyTimestr_args, browseKeyTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeyTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<browseKeyTimestr_args> {
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<browseKeyTimestr_args> {
@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<browseKeyTimestr_result, browseKeyTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeyTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeyTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeyTimestr_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.TObject,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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 <i>other</i>.
*/
public browseKeyTimestr_result(browseKeyTimestr_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey();
Set<Long> 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<Long> __this__success_copy_value = new LinkedHashSet<Long>(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<Long> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> getSuccess() {
return this.success;
}
public browseKeyTimestr_result setSuccess(Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> 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<com.cinchapi.concourse.thrift.TObject,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<browseKeyTimestr_result> {
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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map190.size);
com.cinchapi.concourse.thrift.TObject _key191;
Set<Long> _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<Long>(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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<browseKeyTimestr_result> {
@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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map201.size);
com.cinchapi.concourse.thrift.TObject _key202;
Set<Long> _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<Long>(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<browseKeysTime_args, browseKeysTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeysTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeysTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeysTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public browseKeysTime_args(browseKeysTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public browseKeysTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<browseKeysTime_args> {
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<String>(_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<browseKeysTime_args> {
@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<String>(_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<browseKeysTime_result, browseKeysTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeysTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeysTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeysTime_resultTupleSchemeFactory());
}
public Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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 <i>other</i>.
*/
public browseKeysTime_result(browseKeysTime_result other) {
if (other.isSetSuccess()) {
Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> __this__success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(other.success.size());
for (Map.Entry<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element.getKey();
Set<Long> 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<Long> __this__success_copy_value_copy_value = new LinkedHashSet<Long>(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<com.cinchapi.concourse.thrift.TObject,Set<Long>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>();
}
this.success.put(key, val);
}
public Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> getSuccess() {
return this.success;
}
public browseKeysTime_result setSuccess(Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<browseKeysTime_result> {
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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(2*_map216.size);
String _key217;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> _val218;
for (int _i219 = 0; _i219 < _map216.size; ++_i219)
{
_key217 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map220 = iprot.readMapBegin();
_val218 = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map220.size);
com.cinchapi.concourse.thrift.TObject _key221;
Set<Long> _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<Long>(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<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> _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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<browseKeysTime_result> {
@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<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> _iter230 : struct.success.entrySet())
{
oprot.writeString(_iter230.getKey());
{
oprot.writeI32(_iter230.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(2*_map233.size);
String _key234;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> _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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map237.size);
com.cinchapi.concourse.thrift.TObject _key238;
Set<Long> _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<Long>(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<browseKeysTimestr_args, browseKeysTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeysTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeysTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeysTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public browseKeysTimestr_args(browseKeysTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public browseKeysTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<browseKeysTimestr_args> {
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<String>(_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<browseKeysTimestr_args> {
@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<String>(_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<browseKeysTimestr_result, browseKeysTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<browseKeysTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new browseKeysTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new browseKeysTimestr_resultTupleSchemeFactory());
}
public Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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 <i>other</i>.
*/
public browseKeysTimestr_result(browseKeysTimestr_result other) {
if (other.isSetSuccess()) {
Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> __this__success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(other.success.size());
for (Map.Entry<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_value_element_key = other_element_value_element.getKey();
Set<Long> 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<Long> __this__success_copy_value_copy_value = new LinkedHashSet<Long>(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<com.cinchapi.concourse.thrift.TObject,Set<Long>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>();
}
this.success.put(key, val);
}
public Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> getSuccess() {
return this.success;
}
public browseKeysTimestr_result setSuccess(Map<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> 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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<browseKeysTimestr_result> {
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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(2*_map252.size);
String _key253;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> _val254;
for (int _i255 = 0; _i255 < _map252.size; ++_i255)
{
_key253 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map256 = iprot.readMapBegin();
_val254 = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map256.size);
com.cinchapi.concourse.thrift.TObject _key257;
Set<Long> _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<Long>(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<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> _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<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<browseKeysTimestr_result> {
@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<String, Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>> _iter266 : struct.success.entrySet())
{
oprot.writeString(_iter266.getKey());
{
oprot.writeI32(_iter266.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Set<Long>> _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<String,Map<com.cinchapi.concourse.thrift.TObject,Set<Long>>>(2*_map269.size);
String _key270;
Map<com.cinchapi.concourse.thrift.TObject,Set<Long>> _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<com.cinchapi.concourse.thrift.TObject,Set<Long>>(2*_map273.size);
com.cinchapi.concourse.thrift.TObject _key274;
Set<Long> _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<Long>(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<chronologizeKeyRecord_args, chronologizeKeyRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<chronologizeKeyRecord_args> {
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<chronologizeKeyRecord_args> {
@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<chronologizeKeyRecord_result, chronologizeKeyRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new chronologizeKeyRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new chronologizeKeyRecord_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public chronologizeKeyRecord_result(chronologizeKeyRecord_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public chronologizeKeyRecord_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<chronologizeKeyRecord_result> {
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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map280.size);
long _key281;
Set<com.cinchapi.concourse.thrift.TObject> _val282;
for (int _i283 = 0; _i283 < _map280.size; ++_i283)
{
_key281 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set284 = iprot.readSetBegin();
_val282 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<chronologizeKeyRecord_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map291.size);
long _key292;
Set<com.cinchapi.concourse.thrift.TObject> _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<com.cinchapi.concourse.thrift.TObject>(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<chronologizeKeyRecordStart_args, chronologizeKeyRecordStart_args._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStart_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<chronologizeKeyRecordStart_args> {
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<chronologizeKeyRecordStart_args> {
@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<chronologizeKeyRecordStart_result, chronologizeKeyRecordStart_result._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStart_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new chronologizeKeyRecordStart_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new chronologizeKeyRecordStart_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public chronologizeKeyRecordStart_result(chronologizeKeyRecordStart_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public chronologizeKeyRecordStart_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<chronologizeKeyRecordStart_result> {
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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map298.size);
long _key299;
Set<com.cinchapi.concourse.thrift.TObject> _val300;
for (int _i301 = 0; _i301 < _map298.size; ++_i301)
{
_key299 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set302 = iprot.readSetBegin();
_val300 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<chronologizeKeyRecordStart_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map309.size);
long _key310;
Set<com.cinchapi.concourse.thrift.TObject> _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<com.cinchapi.concourse.thrift.TObject>(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<chronologizeKeyRecordStartstr_args, chronologizeKeyRecordStartstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStartstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<chronologizeKeyRecordStartstr_args> {
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<chronologizeKeyRecordStartstr_args> {
@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<chronologizeKeyRecordStartstr_result, chronologizeKeyRecordStartstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStartstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstr_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public chronologizeKeyRecordStartstr_result(chronologizeKeyRecordStartstr_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public chronologizeKeyRecordStartstr_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<chronologizeKeyRecordStartstr_result> {
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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map316.size);
long _key317;
Set<com.cinchapi.concourse.thrift.TObject> _val318;
for (int _i319 = 0; _i319 < _map316.size; ++_i319)
{
_key317 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set320 = iprot.readSetBegin();
_val318 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<chronologizeKeyRecordStartstr_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map327.size);
long _key328;
Set<com.cinchapi.concourse.thrift.TObject> _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<com.cinchapi.concourse.thrift.TObject>(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<chronologizeKeyRecordStartEnd_args, chronologizeKeyRecordStartEnd_args._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStartEnd_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<chronologizeKeyRecordStartEnd_args> {
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<chronologizeKeyRecordStartEnd_args> {
@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<chronologizeKeyRecordStartEnd_result, chronologizeKeyRecordStartEnd_result._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStartEnd_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new chronologizeKeyRecordStartEnd_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new chronologizeKeyRecordStartEnd_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public chronologizeKeyRecordStartEnd_result(chronologizeKeyRecordStartEnd_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public chronologizeKeyRecordStartEnd_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<chronologizeKeyRecordStartEnd_result> {
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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map334.size);
long _key335;
Set<com.cinchapi.concourse.thrift.TObject> _val336;
for (int _i337 = 0; _i337 < _map334.size; ++_i337)
{
_key335 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set338 = iprot.readSetBegin();
_val336 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<chronologizeKeyRecordStartEnd_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map345.size);
long _key346;
Set<com.cinchapi.concourse.thrift.TObject> _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<com.cinchapi.concourse.thrift.TObject>(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<chronologizeKeyRecordStartstrEndstr_args, chronologizeKeyRecordStartstrEndstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStartstrEndstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<chronologizeKeyRecordStartstrEndstr_args> {
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<chronologizeKeyRecordStartstrEndstr_args> {
@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<chronologizeKeyRecordStartstrEndstr_result, chronologizeKeyRecordStartstrEndstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<chronologizeKeyRecordStartstrEndstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new chronologizeKeyRecordStartstrEndstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new chronologizeKeyRecordStartstrEndstr_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public chronologizeKeyRecordStartstrEndstr_result(chronologizeKeyRecordStartstrEndstr_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public chronologizeKeyRecordStartstrEndstr_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<chronologizeKeyRecordStartstrEndstr_result> {
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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map352.size);
long _key353;
Set<com.cinchapi.concourse.thrift.TObject> _val354;
for (int _i355 = 0; _i355 < _map352.size; ++_i355)
{
_key353 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set356 = iprot.readSetBegin();
_val354 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<chronologizeKeyRecordStartstrEndstr_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _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<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map363.size);
long _key364;
Set<com.cinchapi.concourse.thrift.TObject> _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<com.cinchapi.concourse.thrift.TObject>(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<clearRecord_args, clearRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<clearRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearRecord_args> {
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<clearRecord_args> {
@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<clearRecord_result, clearRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<clearRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearRecord_result> {
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<clearRecord_result> {
@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<clearRecords_args, clearRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<clearRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new clearRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new clearRecords_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public clearRecords_args(clearRecords_args other) {
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public clearRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<clearRecords_args> {
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<Long>(_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<clearRecords_args> {
@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<Long>(_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<clearRecords_result, clearRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<clearRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearRecords_result> {
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<clearRecords_result> {
@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<clearKeyRecord_args, clearKeyRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeyRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearKeyRecord_args> {
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<clearKeyRecord_args> {
@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<clearKeyRecord_result, clearKeyRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeyRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearKeyRecord_result> {
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<clearKeyRecord_result> {
@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<clearKeysRecord_args, clearKeysRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeysRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new clearKeysRecord_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new clearKeysRecord_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public clearKeysRecord_args(clearKeysRecord_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public clearKeysRecord_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<clearKeysRecord_args> {
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<String>(_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<clearKeysRecord_args> {
@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<String>(_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<clearKeysRecord_result, clearKeysRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeysRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearKeysRecord_result> {
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<clearKeysRecord_result> {
@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<clearKeyRecords_args, clearKeyRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeyRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new clearKeyRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new clearKeyRecords_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public clearKeyRecords_args(clearKeyRecords_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public clearKeyRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<clearKeyRecords_args> {
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<Long>(_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<clearKeyRecords_args> {
@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<Long>(_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<clearKeyRecords_result, clearKeyRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeyRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearKeyRecords_result> {
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<clearKeyRecords_result> {
@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<clearKeysRecords_args, clearKeysRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeysRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new clearKeysRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new clearKeysRecords_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public clearKeysRecords_args(clearKeysRecords_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public clearKeysRecords_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public clearKeysRecords_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<clearKeysRecords_args> {
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<String>(_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<Long>(_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<clearKeysRecords_args> {
@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<String>(_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<Long>(_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<clearKeysRecords_result, clearKeysRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<clearKeysRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<clearKeysRecords_result> {
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<clearKeysRecords_result> {
@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<commit_args, commit_args._Fields>, java.io.Serializable, Cloneable, Comparable<commit_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // CREDS
return CREDS;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<commit_args> {
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<commit_args> {
@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<commit_result, commit_result._Fields>, java.io.Serializable, Cloneable, Comparable<commit_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<commit_result> {
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<commit_result> {
@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 describeRecord_args implements org.apache.thrift.TBase<describeRecord_args, describeRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<describeRecord_args> {
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<describeRecord_args> {
@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<describeRecord_result, describeRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecord_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<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 <i>other</i>.
*/
public describeRecord_result(describeRecord_result other) {
if (other.isSetSuccess()) {
Set<String> __this__success = new LinkedHashSet<String>(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<String> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(String elem) {
if (this.success == null) {
this.success = new LinkedHashSet<String>();
}
this.success.add(elem);
}
public Set<String> getSuccess() {
return this.success;
}
public describeRecord_result setSuccess(Set<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 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<describeRecord_result> {
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 _set410 = iprot.readSetBegin();
struct.success = new LinkedHashSet<String>(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, 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 _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 describeRecord_resultTupleSchemeFactory implements SchemeFactory {
public describeRecord_resultTupleScheme getScheme() {
return new describeRecord_resultTupleScheme();
}
}
private static class describeRecord_resultTupleScheme extends TupleScheme<describeRecord_result> {
@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 _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, 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 _set415 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.success = new LinkedHashSet<String>(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 describeRecordTime_args implements org.apache.thrift.TBase<describeRecordTime_args, describeRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<describeRecordTime_args> {
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<describeRecordTime_args> {
@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<describeRecordTime_result, describeRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecordTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecordTime_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<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 <i>other</i>.
*/
public describeRecordTime_result(describeRecordTime_result other) {
if (other.isSetSuccess()) {
Set<String> __this__success = new LinkedHashSet<String>(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<String> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(String elem) {
if (this.success == null) {
this.success = new LinkedHashSet<String>();
}
this.success.add(elem);
}
public Set<String> getSuccess() {
return this.success;
}
public describeRecordTime_result setSuccess(Set<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 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<describeRecordTime_result> {
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 _set418 = iprot.readSetBegin();
struct.success = new LinkedHashSet<String>(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, 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 _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 describeRecordTime_resultTupleSchemeFactory implements SchemeFactory {
public describeRecordTime_resultTupleScheme getScheme() {
return new describeRecordTime_resultTupleScheme();
}
}
private static class describeRecordTime_resultTupleScheme extends TupleScheme<describeRecordTime_result> {
@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 _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, 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 _set423 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.success = new LinkedHashSet<String>(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 describeRecordTimestr_args implements org.apache.thrift.TBase<describeRecordTimestr_args, describeRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<describeRecordTimestr_args> {
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<describeRecordTimestr_args> {
@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<describeRecordTimestr_result, describeRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecordTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecordTimestr_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<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 <i>other</i>.
*/
public describeRecordTimestr_result(describeRecordTimestr_result other) {
if (other.isSetSuccess()) {
Set<String> __this__success = new LinkedHashSet<String>(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<String> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(String elem) {
if (this.success == null) {
this.success = new LinkedHashSet<String>();
}
this.success.add(elem);
}
public Set<String> getSuccess() {
return this.success;
}
public describeRecordTimestr_result setSuccess(Set<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 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<describeRecordTimestr_result> {
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 _set426 = iprot.readSetBegin();
struct.success = new LinkedHashSet<String>(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;
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 _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();
}
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<describeRecordTimestr_result> {
@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 _iter430 : struct.success)
{
oprot.writeString(_iter430);
}
}
}
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 _set431 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.success = new LinkedHashSet<String>(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);
}
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<describeRecords_args, describeRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecords_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public describeRecords_args(describeRecords_args other) {
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public describeRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<describeRecords_args> {
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 _list434 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list434.size);
long _elem435;
for (int _i436 = 0; _i436 < _list434.size; ++_i436)
{
_elem435 = iprot.readI64();
struct.records.add(_elem435);
}
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 _iter437 : struct.records)
{
oprot.writeI64(_iter437);
}
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<describeRecords_args> {
@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 _iter438 : struct.records)
{
oprot.writeI64(_iter438);
}
}
}
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 _list439 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list439.size);
long _elem440;
for (int _i441 = 0; _i441 < _list439.size; ++_i441)
{
_elem440 = iprot.readI64();
struct.records.add(_elem440);
}
}
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<describeRecords_result, describeRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecords_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public describeRecords_result(describeRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<String>> __this__success = new LinkedHashMap<Long,Set<String>>(other.success.size());
for (Map.Entry<Long, Set<String>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<String> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<String> __this__success_copy_value = new LinkedHashSet<String>(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<String> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<String>>();
}
this.success.put(key, val);
}
public Map<Long,Set<String>> getSuccess() {
return this.success;
}
public describeRecords_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<describeRecords_result> {
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 _map442 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<String>>(2*_map442.size);
long _key443;
Set<String> _val444;
for (int _i445 = 0; _i445 < _map442.size; ++_i445)
{
_key443 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set446 = iprot.readSetBegin();
_val444 = new LinkedHashSet<String>(2*_set446.size);
String _elem447;
for (int _i448 = 0; _i448 < _set446.size; ++_i448)
{
_elem447 = iprot.readString();
_val444.add(_elem447);
}
iprot.readSetEnd();
}
struct.success.put(_key443, _val444);
}
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<Long, Set<String>> _iter449 : struct.success.entrySet())
{
oprot.writeI64(_iter449.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, _iter449.getValue().size()));
for (String _iter450 : _iter449.getValue())
{
oprot.writeString(_iter450);
}
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<describeRecords_result> {
@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<Long, Set<String>> _iter451 : struct.success.entrySet())
{
oprot.writeI64(_iter451.getKey());
{
oprot.writeI32(_iter451.getValue().size());
for (String _iter452 : _iter451.getValue())
{
oprot.writeString(_iter452);
}
}
}
}
}
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 _map453 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<String>>(2*_map453.size);
long _key454;
Set<String> _val455;
for (int _i456 = 0; _i456 < _map453.size; ++_i456)
{
_key454 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set457 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
_val455 = new LinkedHashSet<String>(2*_set457.size);
String _elem458;
for (int _i459 = 0; _i459 < _set457.size; ++_i459)
{
_elem458 = iprot.readString();
_val455.add(_elem458);
}
}
struct.success.put(_key454, _val455);
}
}
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<describeRecordsTime_args, describeRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecordsTime_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public describeRecordsTime_args(describeRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public describeRecordsTime_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<describeRecordsTime_args> {
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 _list460 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list460.size);
long _elem461;
for (int _i462 = 0; _i462 < _list460.size; ++_i462)
{
_elem461 = iprot.readI64();
struct.records.add(_elem461);
}
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 _iter463 : struct.records)
{
oprot.writeI64(_iter463);
}
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<describeRecordsTime_args> {
@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 _iter464 : struct.records)
{
oprot.writeI64(_iter464);
}
}
}
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 _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list465.size);
long _elem466;
for (int _i467 = 0; _i467 < _list465.size; ++_i467)
{
_elem466 = iprot.readI64();
struct.records.add(_elem466);
}
}
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<describeRecordsTime_result, describeRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecordsTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecordsTime_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public describeRecordsTime_result(describeRecordsTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<String>> __this__success = new LinkedHashMap<Long,Set<String>>(other.success.size());
for (Map.Entry<Long, Set<String>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<String> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<String> __this__success_copy_value = new LinkedHashSet<String>(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<String> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<String>>();
}
this.success.put(key, val);
}
public Map<Long,Set<String>> getSuccess() {
return this.success;
}
public describeRecordsTime_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<describeRecordsTime_result> {
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 _map468 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<String>>(2*_map468.size);
long _key469;
Set<String> _val470;
for (int _i471 = 0; _i471 < _map468.size; ++_i471)
{
_key469 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set472 = iprot.readSetBegin();
_val470 = new LinkedHashSet<String>(2*_set472.size);
String _elem473;
for (int _i474 = 0; _i474 < _set472.size; ++_i474)
{
_elem473 = iprot.readString();
_val470.add(_elem473);
}
iprot.readSetEnd();
}
struct.success.put(_key469, _val470);
}
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<Long, Set<String>> _iter475 : struct.success.entrySet())
{
oprot.writeI64(_iter475.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, _iter475.getValue().size()));
for (String _iter476 : _iter475.getValue())
{
oprot.writeString(_iter476);
}
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<describeRecordsTime_result> {
@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<Long, Set<String>> _iter477 : struct.success.entrySet())
{
oprot.writeI64(_iter477.getKey());
{
oprot.writeI32(_iter477.getValue().size());
for (String _iter478 : _iter477.getValue())
{
oprot.writeString(_iter478);
}
}
}
}
}
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 _map479 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<String>>(2*_map479.size);
long _key480;
Set<String> _val481;
for (int _i482 = 0; _i482 < _map479.size; ++_i482)
{
_key480 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set483 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
_val481 = new LinkedHashSet<String>(2*_set483.size);
String _elem484;
for (int _i485 = 0; _i485 < _set483.size; ++_i485)
{
_elem484 = iprot.readString();
_val481.add(_elem484);
}
}
struct.success.put(_key480, _val481);
}
}
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<describeRecordsTimestr_args, describeRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecordsTimestr_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public describeRecordsTimestr_args(describeRecordsTimestr_args other) {
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public describeRecordsTimestr_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<describeRecordsTimestr_args> {
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 _list486 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list486.size);
long _elem487;
for (int _i488 = 0; _i488 < _list486.size; ++_i488)
{
_elem487 = iprot.readI64();
struct.records.add(_elem487);
}
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 _iter489 : struct.records)
{
oprot.writeI64(_iter489);
}
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<describeRecordsTimestr_args> {
@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 _iter490 : struct.records)
{
oprot.writeI64(_iter490);
}
}
}
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 _list491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list491.size);
long _elem492;
for (int _i493 = 0; _i493 < _list491.size; ++_i493)
{
_elem492 = iprot.readI64();
struct.records.add(_elem492);
}
}
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<describeRecordsTimestr_result, describeRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<describeRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new describeRecordsTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new describeRecordsTimestr_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public describeRecordsTimestr_result(describeRecordsTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<String>> __this__success = new LinkedHashMap<Long,Set<String>>(other.success.size());
for (Map.Entry<Long, Set<String>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<String> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<String> __this__success_copy_value = new LinkedHashSet<String>(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<String> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<String>>();
}
this.success.put(key, val);
}
public Map<Long,Set<String>> getSuccess() {
return this.success;
}
public describeRecordsTimestr_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<describeRecordsTimestr_result> {
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 _map494 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<String>>(2*_map494.size);
long _key495;
Set<String> _val496;
for (int _i497 = 0; _i497 < _map494.size; ++_i497)
{
_key495 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set498 = iprot.readSetBegin();
_val496 = new LinkedHashSet<String>(2*_set498.size);
String _elem499;
for (int _i500 = 0; _i500 < _set498.size; ++_i500)
{
_elem499 = iprot.readString();
_val496.add(_elem499);
}
iprot.readSetEnd();
}
struct.success.put(_key495, _val496);
}
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<Long, Set<String>> _iter501 : struct.success.entrySet())
{
oprot.writeI64(_iter501.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, _iter501.getValue().size()));
for (String _iter502 : _iter501.getValue())
{
oprot.writeString(_iter502);
}
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<describeRecordsTimestr_result> {
@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<Long, Set<String>> _iter503 : struct.success.entrySet())
{
oprot.writeI64(_iter503.getKey());
{
oprot.writeI32(_iter503.getValue().size());
for (String _iter504 : _iter503.getValue())
{
oprot.writeString(_iter504);
}
}
}
}
}
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 _map505 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<String>>(2*_map505.size);
long _key506;
Set<String> _val507;
for (int _i508 = 0; _i508 < _map505.size; ++_i508)
{
_key506 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set509 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
_val507 = new LinkedHashSet<String>(2*_set509.size);
String _elem510;
for (int _i511 = 0; _i511 < _set509.size; ++_i511)
{
_elem510 = iprot.readString();
_val507.add(_elem510);
}
}
struct.success.put(_key506, _val507);
}
}
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<diffRecordStart_args, diffRecordStart_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStart_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffRecordStart_args> {
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<diffRecordStart_args> {
@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<diffRecordStart_result, diffRecordStart_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStart_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffRecordStart_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffRecordStart_resultTupleSchemeFactory());
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffRecordStart_result(diffRecordStart_result other) {
if (other.isSetSuccess()) {
Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public diffRecordStart_result setSuccess(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffRecordStart_result> {
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 _map512 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map512.size);
String _key513;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val514;
for (int _i515 = 0; _i515 < _map512.size; ++_i515)
{
_key513 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map516 = iprot.readMapBegin();
_val514 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map516.size);
com.cinchapi.concourse.thrift.Diff _key517;
Set<com.cinchapi.concourse.thrift.TObject> _val518;
for (int _i519 = 0; _i519 < _map516.size; ++_i519)
{
_key517 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set520 = iprot.readSetBegin();
_val518 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set520.size);
com.cinchapi.concourse.thrift.TObject _elem521;
for (int _i522 = 0; _i522 < _set520.size; ++_i522)
{
_elem521 = new com.cinchapi.concourse.thrift.TObject();
_elem521.read(iprot);
_val518.add(_elem521);
}
iprot.readSetEnd();
}
_val514.put(_key517, _val518);
}
iprot.readMapEnd();
}
struct.success.put(_key513, _val514);
}
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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter523 : struct.success.entrySet())
{
oprot.writeString(_iter523.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter523.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter524 : _iter523.getValue().entrySet())
{
oprot.writeI32(_iter524.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter524.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter525 : _iter524.getValue())
{
_iter525.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<diffRecordStart_result> {
@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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter526 : struct.success.entrySet())
{
oprot.writeString(_iter526.getKey());
{
oprot.writeI32(_iter526.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter527 : _iter526.getValue().entrySet())
{
oprot.writeI32(_iter527.getKey().getValue());
{
oprot.writeI32(_iter527.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter528 : _iter527.getValue())
{
_iter528.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 _map529 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map529.size);
String _key530;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val531;
for (int _i532 = 0; _i532 < _map529.size; ++_i532)
{
_key530 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map533 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val531 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map533.size);
com.cinchapi.concourse.thrift.Diff _key534;
Set<com.cinchapi.concourse.thrift.TObject> _val535;
for (int _i536 = 0; _i536 < _map533.size; ++_i536)
{
_key534 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set537 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val535 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set537.size);
com.cinchapi.concourse.thrift.TObject _elem538;
for (int _i539 = 0; _i539 < _set537.size; ++_i539)
{
_elem538 = new com.cinchapi.concourse.thrift.TObject();
_elem538.read(iprot);
_val535.add(_elem538);
}
}
_val531.put(_key534, _val535);
}
}
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);
}
}
}
}
public static class diffRecordStartstr_args implements org.apache.thrift.TBase<diffRecordStartstr_args, diffRecordStartstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStartstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffRecordStartstr_args> {
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<diffRecordStartstr_args> {
@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<diffRecordStartstr_result, diffRecordStartstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStartstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffRecordStartstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffRecordStartstr_resultTupleSchemeFactory());
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffRecordStartstr_result(diffRecordStartstr_result other) {
if (other.isSetSuccess()) {
Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public diffRecordStartstr_result setSuccess(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffRecordStartstr_result> {
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 _map540 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map540.size);
String _key541;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val542;
for (int _i543 = 0; _i543 < _map540.size; ++_i543)
{
_key541 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map544 = iprot.readMapBegin();
_val542 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map544.size);
com.cinchapi.concourse.thrift.Diff _key545;
Set<com.cinchapi.concourse.thrift.TObject> _val546;
for (int _i547 = 0; _i547 < _map544.size; ++_i547)
{
_key545 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set548 = iprot.readSetBegin();
_val546 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set548.size);
com.cinchapi.concourse.thrift.TObject _elem549;
for (int _i550 = 0; _i550 < _set548.size; ++_i550)
{
_elem549 = new com.cinchapi.concourse.thrift.TObject();
_elem549.read(iprot);
_val546.add(_elem549);
}
iprot.readSetEnd();
}
_val542.put(_key545, _val546);
}
iprot.readMapEnd();
}
struct.success.put(_key541, _val542);
}
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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter551 : struct.success.entrySet())
{
oprot.writeString(_iter551.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter551.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter552 : _iter551.getValue().entrySet())
{
oprot.writeI32(_iter552.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter552.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter553 : _iter552.getValue())
{
_iter553.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<diffRecordStartstr_result> {
@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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter554 : struct.success.entrySet())
{
oprot.writeString(_iter554.getKey());
{
oprot.writeI32(_iter554.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter555 : _iter554.getValue().entrySet())
{
oprot.writeI32(_iter555.getKey().getValue());
{
oprot.writeI32(_iter555.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter556 : _iter555.getValue())
{
_iter556.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 _map557 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map557.size);
String _key558;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val559;
for (int _i560 = 0; _i560 < _map557.size; ++_i560)
{
_key558 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map561 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val559 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map561.size);
com.cinchapi.concourse.thrift.Diff _key562;
Set<com.cinchapi.concourse.thrift.TObject> _val563;
for (int _i564 = 0; _i564 < _map561.size; ++_i564)
{
_key562 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set565 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val563 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set565.size);
com.cinchapi.concourse.thrift.TObject _elem566;
for (int _i567 = 0; _i567 < _set565.size; ++_i567)
{
_elem566 = new com.cinchapi.concourse.thrift.TObject();
_elem566.read(iprot);
_val563.add(_elem566);
}
}
_val559.put(_key562, _val563);
}
}
struct.success.put(_key558, _val559);
}
}
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<diffRecordStartEnd_args, diffRecordStartEnd_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStartEnd_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffRecordStartEnd_args> {
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<diffRecordStartEnd_args> {
@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<diffRecordStartEnd_result, diffRecordStartEnd_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStartEnd_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffRecordStartEnd_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffRecordStartEnd_resultTupleSchemeFactory());
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffRecordStartEnd_result(diffRecordStartEnd_result other) {
if (other.isSetSuccess()) {
Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public diffRecordStartEnd_result setSuccess(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffRecordStartEnd_result> {
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 _map568 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map568.size);
String _key569;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val570;
for (int _i571 = 0; _i571 < _map568.size; ++_i571)
{
_key569 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map572 = iprot.readMapBegin();
_val570 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map572.size);
com.cinchapi.concourse.thrift.Diff _key573;
Set<com.cinchapi.concourse.thrift.TObject> _val574;
for (int _i575 = 0; _i575 < _map572.size; ++_i575)
{
_key573 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set576 = iprot.readSetBegin();
_val574 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set576.size);
com.cinchapi.concourse.thrift.TObject _elem577;
for (int _i578 = 0; _i578 < _set576.size; ++_i578)
{
_elem577 = new com.cinchapi.concourse.thrift.TObject();
_elem577.read(iprot);
_val574.add(_elem577);
}
iprot.readSetEnd();
}
_val570.put(_key573, _val574);
}
iprot.readMapEnd();
}
struct.success.put(_key569, _val570);
}
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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter579 : struct.success.entrySet())
{
oprot.writeString(_iter579.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter579.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter580 : _iter579.getValue().entrySet())
{
oprot.writeI32(_iter580.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter580.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter581 : _iter580.getValue())
{
_iter581.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<diffRecordStartEnd_result> {
@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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter582 : struct.success.entrySet())
{
oprot.writeString(_iter582.getKey());
{
oprot.writeI32(_iter582.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter583 : _iter582.getValue().entrySet())
{
oprot.writeI32(_iter583.getKey().getValue());
{
oprot.writeI32(_iter583.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter584 : _iter583.getValue())
{
_iter584.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 _map585 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map585.size);
String _key586;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val587;
for (int _i588 = 0; _i588 < _map585.size; ++_i588)
{
_key586 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map589 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val587 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map589.size);
com.cinchapi.concourse.thrift.Diff _key590;
Set<com.cinchapi.concourse.thrift.TObject> _val591;
for (int _i592 = 0; _i592 < _map589.size; ++_i592)
{
_key590 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set593 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val591 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set593.size);
com.cinchapi.concourse.thrift.TObject _elem594;
for (int _i595 = 0; _i595 < _set593.size; ++_i595)
{
_elem594 = new com.cinchapi.concourse.thrift.TObject();
_elem594.read(iprot);
_val591.add(_elem594);
}
}
_val587.put(_key590, _val591);
}
}
struct.success.put(_key586, _val587);
}
}
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<diffRecordStartstrEndstr_args, diffRecordStartstrEndstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStartstrEndstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffRecordStartstrEndstr_args> {
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<diffRecordStartstrEndstr_args> {
@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<diffRecordStartstrEndstr_result, diffRecordStartstrEndstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffRecordStartstrEndstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffRecordStartstrEndstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffRecordStartstrEndstr_resultTupleSchemeFactory());
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffRecordStartstrEndstr_result(diffRecordStartstrEndstr_result other) {
if (other.isSetSuccess()) {
Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public diffRecordStartstrEndstr_result setSuccess(Map<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<String,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffRecordStartstrEndstr_result> {
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 _map596 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map596.size);
String _key597;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val598;
for (int _i599 = 0; _i599 < _map596.size; ++_i599)
{
_key597 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map600 = iprot.readMapBegin();
_val598 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map600.size);
com.cinchapi.concourse.thrift.Diff _key601;
Set<com.cinchapi.concourse.thrift.TObject> _val602;
for (int _i603 = 0; _i603 < _map600.size; ++_i603)
{
_key601 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set604 = iprot.readSetBegin();
_val602 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set604.size);
com.cinchapi.concourse.thrift.TObject _elem605;
for (int _i606 = 0; _i606 < _set604.size; ++_i606)
{
_elem605 = new com.cinchapi.concourse.thrift.TObject();
_elem605.read(iprot);
_val602.add(_elem605);
}
iprot.readSetEnd();
}
_val598.put(_key601, _val602);
}
iprot.readMapEnd();
}
struct.success.put(_key597, _val598);
}
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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter607 : struct.success.entrySet())
{
oprot.writeString(_iter607.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter607.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter608 : _iter607.getValue().entrySet())
{
oprot.writeI32(_iter608.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter608.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter609 : _iter608.getValue())
{
_iter609.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<diffRecordStartstrEndstr_result> {
@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<String, Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>> _iter610 : struct.success.entrySet())
{
oprot.writeString(_iter610.getKey());
{
oprot.writeI32(_iter610.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter611 : _iter610.getValue().entrySet())
{
oprot.writeI32(_iter611.getKey().getValue());
{
oprot.writeI32(_iter611.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter612 : _iter611.getValue())
{
_iter612.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 _map613 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<String,Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map613.size);
String _key614;
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> _val615;
for (int _i616 = 0; _i616 < _map613.size; ++_i616)
{
_key614 = iprot.readString();
{
org.apache.thrift.protocol.TMap _map617 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val615 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map617.size);
com.cinchapi.concourse.thrift.Diff _key618;
Set<com.cinchapi.concourse.thrift.TObject> _val619;
for (int _i620 = 0; _i620 < _map617.size; ++_i620)
{
_key618 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set621 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val619 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set621.size);
com.cinchapi.concourse.thrift.TObject _elem622;
for (int _i623 = 0; _i623 < _set621.size; ++_i623)
{
_elem622 = new com.cinchapi.concourse.thrift.TObject();
_elem622.read(iprot);
_val619.add(_elem622);
}
}
_val615.put(_key618, _val619);
}
}
struct.success.put(_key614, _val615);
}
}
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<diffKeyRecordStart_args, diffKeyRecordStart_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStart_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyRecordStart_args> {
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<diffKeyRecordStart_args> {
@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<diffKeyRecordStart_result, diffKeyRecordStart_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStart_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyRecordStart_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyRecordStart_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffKeyRecordStart_result(diffKeyRecordStart_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public diffKeyRecordStart_result setSuccess(Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyRecordStart_result> {
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 _map624 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map624.size);
com.cinchapi.concourse.thrift.Diff _key625;
Set<com.cinchapi.concourse.thrift.TObject> _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<com.cinchapi.concourse.thrift.TObject>(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();
}
struct.success.put(_key625, _val626);
}
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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter631 : struct.success.entrySet())
{
oprot.writeI32(_iter631.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter631.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter632 : _iter631.getValue())
{
_iter632.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<diffKeyRecordStart_result> {
@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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter633 : struct.success.entrySet())
{
oprot.writeI32(_iter633.getKey().getValue());
{
oprot.writeI32(_iter633.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter634 : _iter633.getValue())
{
_iter634.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 _map635 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map635.size);
com.cinchapi.concourse.thrift.Diff _key636;
Set<com.cinchapi.concourse.thrift.TObject> _val637;
for (int _i638 = 0; _i638 < _map635.size; ++_i638)
{
_key636 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set639 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val637 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set639.size);
com.cinchapi.concourse.thrift.TObject _elem640;
for (int _i641 = 0; _i641 < _set639.size; ++_i641)
{
_elem640 = new com.cinchapi.concourse.thrift.TObject();
_elem640.read(iprot);
_val637.add(_elem640);
}
}
struct.success.put(_key636, _val637);
}
}
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<diffKeyRecordStartstr_args, diffKeyRecordStartstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStartstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyRecordStartstr_args> {
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<diffKeyRecordStartstr_args> {
@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<diffKeyRecordStartstr_result, diffKeyRecordStartstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStartstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyRecordStartstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyRecordStartstr_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffKeyRecordStartstr_result(diffKeyRecordStartstr_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public diffKeyRecordStartstr_result setSuccess(Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyRecordStartstr_result> {
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 _map642 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map642.size);
com.cinchapi.concourse.thrift.Diff _key643;
Set<com.cinchapi.concourse.thrift.TObject> _val644;
for (int _i645 = 0; _i645 < _map642.size; ++_i645)
{
_key643 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set646 = iprot.readSetBegin();
_val644 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set646.size);
com.cinchapi.concourse.thrift.TObject _elem647;
for (int _i648 = 0; _i648 < _set646.size; ++_i648)
{
_elem647 = new com.cinchapi.concourse.thrift.TObject();
_elem647.read(iprot);
_val644.add(_elem647);
}
iprot.readSetEnd();
}
struct.success.put(_key643, _val644);
}
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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter649 : struct.success.entrySet())
{
oprot.writeI32(_iter649.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter649.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter650 : _iter649.getValue())
{
_iter650.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<diffKeyRecordStartstr_result> {
@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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter651 : struct.success.entrySet())
{
oprot.writeI32(_iter651.getKey().getValue());
{
oprot.writeI32(_iter651.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter652 : _iter651.getValue())
{
_iter652.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 _map653 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map653.size);
com.cinchapi.concourse.thrift.Diff _key654;
Set<com.cinchapi.concourse.thrift.TObject> _val655;
for (int _i656 = 0; _i656 < _map653.size; ++_i656)
{
_key654 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set657 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val655 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set657.size);
com.cinchapi.concourse.thrift.TObject _elem658;
for (int _i659 = 0; _i659 < _set657.size; ++_i659)
{
_elem658 = new com.cinchapi.concourse.thrift.TObject();
_elem658.read(iprot);
_val655.add(_elem658);
}
}
struct.success.put(_key654, _val655);
}
}
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<diffKeyRecordStartEnd_args, diffKeyRecordStartEnd_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStartEnd_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyRecordStartEnd_args> {
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<diffKeyRecordStartEnd_args> {
@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<diffKeyRecordStartEnd_result, diffKeyRecordStartEnd_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStartEnd_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyRecordStartEnd_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyRecordStartEnd_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffKeyRecordStartEnd_result(diffKeyRecordStartEnd_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public diffKeyRecordStartEnd_result setSuccess(Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyRecordStartEnd_result> {
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 _map660 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map660.size);
com.cinchapi.concourse.thrift.Diff _key661;
Set<com.cinchapi.concourse.thrift.TObject> _val662;
for (int _i663 = 0; _i663 < _map660.size; ++_i663)
{
_key661 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set664 = iprot.readSetBegin();
_val662 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set664.size);
com.cinchapi.concourse.thrift.TObject _elem665;
for (int _i666 = 0; _i666 < _set664.size; ++_i666)
{
_elem665 = new com.cinchapi.concourse.thrift.TObject();
_elem665.read(iprot);
_val662.add(_elem665);
}
iprot.readSetEnd();
}
struct.success.put(_key661, _val662);
}
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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter667 : struct.success.entrySet())
{
oprot.writeI32(_iter667.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter667.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter668 : _iter667.getValue())
{
_iter668.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<diffKeyRecordStartEnd_result> {
@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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter669 : struct.success.entrySet())
{
oprot.writeI32(_iter669.getKey().getValue());
{
oprot.writeI32(_iter669.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter670 : _iter669.getValue())
{
_iter670.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 _map671 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map671.size);
com.cinchapi.concourse.thrift.Diff _key672;
Set<com.cinchapi.concourse.thrift.TObject> _val673;
for (int _i674 = 0; _i674 < _map671.size; ++_i674)
{
_key672 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set675 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val673 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set675.size);
com.cinchapi.concourse.thrift.TObject _elem676;
for (int _i677 = 0; _i677 < _set675.size; ++_i677)
{
_elem676 = new com.cinchapi.concourse.thrift.TObject();
_elem676.read(iprot);
_val673.add(_elem676);
}
}
struct.success.put(_key672, _val673);
}
}
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<diffKeyRecordStartstrEndstr_args, diffKeyRecordStartstrEndstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStartstrEndstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyRecordStartstrEndstr_args> {
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<diffKeyRecordStartstrEndstr_args> {
@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<diffKeyRecordStartstrEndstr_result, diffKeyRecordStartstrEndstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyRecordStartstrEndstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyRecordStartstrEndstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyRecordStartstrEndstr_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.Diff,Set<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 <i>other</i>.
*/
public diffKeyRecordStartstrEndstr_result(diffKeyRecordStartstrEndstr_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
com.cinchapi.concourse.thrift.Diff __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public diffKeyRecordStartstrEndstr_result setSuccess(Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyRecordStartstrEndstr_result> {
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 _map678 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map678.size);
com.cinchapi.concourse.thrift.Diff _key679;
Set<com.cinchapi.concourse.thrift.TObject> _val680;
for (int _i681 = 0; _i681 < _map678.size; ++_i681)
{
_key679 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set682 = iprot.readSetBegin();
_val680 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set682.size);
com.cinchapi.concourse.thrift.TObject _elem683;
for (int _i684 = 0; _i684 < _set682.size; ++_i684)
{
_elem683 = new com.cinchapi.concourse.thrift.TObject();
_elem683.read(iprot);
_val680.add(_elem683);
}
iprot.readSetEnd();
}
struct.success.put(_key679, _val680);
}
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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter685 : struct.success.entrySet())
{
oprot.writeI32(_iter685.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter685.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter686 : _iter685.getValue())
{
_iter686.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<diffKeyRecordStartstrEndstr_result> {
@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<com.cinchapi.concourse.thrift.Diff, Set<com.cinchapi.concourse.thrift.TObject>> _iter687 : struct.success.entrySet())
{
oprot.writeI32(_iter687.getKey().getValue());
{
oprot.writeI32(_iter687.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter688 : _iter687.getValue())
{
_iter688.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 _map689 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map689.size);
com.cinchapi.concourse.thrift.Diff _key690;
Set<com.cinchapi.concourse.thrift.TObject> _val691;
for (int _i692 = 0; _i692 < _map689.size; ++_i692)
{
_key690 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set693 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val691 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set693.size);
com.cinchapi.concourse.thrift.TObject _elem694;
for (int _i695 = 0; _i695 < _set693.size; ++_i695)
{
_elem694 = new com.cinchapi.concourse.thrift.TObject();
_elem694.read(iprot);
_val691.add(_elem694);
}
}
struct.success.put(_key690, _val691);
}
}
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<diffKeyStart_args, diffKeyStart_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStart_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyStart_args> {
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<diffKeyStart_args> {
@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<diffKeyStart_result, diffKeyStart_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStart_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyStart_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyStart_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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 <i>other</i>.
*/
public diffKeyStart_result(diffKeyStart_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> 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<com.cinchapi.concourse.thrift.Diff,Set<Long>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<Long> 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<Long> __this__success_copy_value_copy_value = new LinkedHashSet<Long>(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<com.cinchapi.concourse.thrift.Diff,Set<Long>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> getSuccess() {
return this.success;
}
public diffKeyStart_result setSuccess(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyStart_result> {
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 _map696 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map696.size);
com.cinchapi.concourse.thrift.TObject _key697;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val698;
for (int _i699 = 0; _i699 < _map696.size; ++_i699)
{
_key697 = new com.cinchapi.concourse.thrift.TObject();
_key697.read(iprot);
{
org.apache.thrift.protocol.TMap _map700 = iprot.readMapBegin();
_val698 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map700.size);
com.cinchapi.concourse.thrift.Diff _key701;
Set<Long> _val702;
for (int _i703 = 0; _i703 < _map700.size; ++_i703)
{
_key701 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set704 = iprot.readSetBegin();
_val702 = new LinkedHashSet<Long>(2*_set704.size);
long _elem705;
for (int _i706 = 0; _i706 < _set704.size; ++_i706)
{
_elem705 = iprot.readI64();
_val702.add(_elem705);
}
iprot.readSetEnd();
}
_val698.put(_key701, _val702);
}
iprot.readMapEnd();
}
struct.success.put(_key697, _val698);
}
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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter707 : struct.success.entrySet())
{
_iter707.getKey().write(oprot);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter707.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter708 : _iter707.getValue().entrySet())
{
oprot.writeI32(_iter708.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter708.getValue().size()));
for (long _iter709 : _iter708.getValue())
{
oprot.writeI64(_iter709);
}
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<diffKeyStart_result> {
@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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter710 : struct.success.entrySet())
{
_iter710.getKey().write(oprot);
{
oprot.writeI32(_iter710.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter711 : _iter710.getValue().entrySet())
{
oprot.writeI32(_iter711.getKey().getValue());
{
oprot.writeI32(_iter711.getValue().size());
for (long _iter712 : _iter711.getValue())
{
oprot.writeI64(_iter712);
}
}
}
}
}
}
}
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 _map713 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map713.size);
com.cinchapi.concourse.thrift.TObject _key714;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val715;
for (int _i716 = 0; _i716 < _map713.size; ++_i716)
{
_key714 = new com.cinchapi.concourse.thrift.TObject();
_key714.read(iprot);
{
org.apache.thrift.protocol.TMap _map717 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val715 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map717.size);
com.cinchapi.concourse.thrift.Diff _key718;
Set<Long> _val719;
for (int _i720 = 0; _i720 < _map717.size; ++_i720)
{
_key718 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set721 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
_val719 = new LinkedHashSet<Long>(2*_set721.size);
long _elem722;
for (int _i723 = 0; _i723 < _set721.size; ++_i723)
{
_elem722 = iprot.readI64();
_val719.add(_elem722);
}
}
_val715.put(_key718, _val719);
}
}
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);
}
}
}
}
public static class diffKeyStartstr_args implements org.apache.thrift.TBase<diffKeyStartstr_args, diffKeyStartstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStartstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyStartstr_args> {
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<diffKeyStartstr_args> {
@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<diffKeyStartstr_result, diffKeyStartstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStartstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyStartstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyStartstr_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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 <i>other</i>.
*/
public diffKeyStartstr_result(diffKeyStartstr_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> 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<com.cinchapi.concourse.thrift.Diff,Set<Long>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<Long> 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<Long> __this__success_copy_value_copy_value = new LinkedHashSet<Long>(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<com.cinchapi.concourse.thrift.Diff,Set<Long>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> getSuccess() {
return this.success;
}
public diffKeyStartstr_result setSuccess(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyStartstr_result> {
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 _map724 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map724.size);
com.cinchapi.concourse.thrift.TObject _key725;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val726;
for (int _i727 = 0; _i727 < _map724.size; ++_i727)
{
_key725 = new com.cinchapi.concourse.thrift.TObject();
_key725.read(iprot);
{
org.apache.thrift.protocol.TMap _map728 = iprot.readMapBegin();
_val726 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map728.size);
com.cinchapi.concourse.thrift.Diff _key729;
Set<Long> _val730;
for (int _i731 = 0; _i731 < _map728.size; ++_i731)
{
_key729 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set732 = iprot.readSetBegin();
_val730 = new LinkedHashSet<Long>(2*_set732.size);
long _elem733;
for (int _i734 = 0; _i734 < _set732.size; ++_i734)
{
_elem733 = iprot.readI64();
_val730.add(_elem733);
}
iprot.readSetEnd();
}
_val726.put(_key729, _val730);
}
iprot.readMapEnd();
}
struct.success.put(_key725, _val726);
}
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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter735 : struct.success.entrySet())
{
_iter735.getKey().write(oprot);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter735.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter736 : _iter735.getValue().entrySet())
{
oprot.writeI32(_iter736.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter736.getValue().size()));
for (long _iter737 : _iter736.getValue())
{
oprot.writeI64(_iter737);
}
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<diffKeyStartstr_result> {
@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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter738 : struct.success.entrySet())
{
_iter738.getKey().write(oprot);
{
oprot.writeI32(_iter738.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter739 : _iter738.getValue().entrySet())
{
oprot.writeI32(_iter739.getKey().getValue());
{
oprot.writeI32(_iter739.getValue().size());
for (long _iter740 : _iter739.getValue())
{
oprot.writeI64(_iter740);
}
}
}
}
}
}
}
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 _map741 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map741.size);
com.cinchapi.concourse.thrift.TObject _key742;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val743;
for (int _i744 = 0; _i744 < _map741.size; ++_i744)
{
_key742 = new com.cinchapi.concourse.thrift.TObject();
_key742.read(iprot);
{
org.apache.thrift.protocol.TMap _map745 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val743 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map745.size);
com.cinchapi.concourse.thrift.Diff _key746;
Set<Long> _val747;
for (int _i748 = 0; _i748 < _map745.size; ++_i748)
{
_key746 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set749 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
_val747 = new LinkedHashSet<Long>(2*_set749.size);
long _elem750;
for (int _i751 = 0; _i751 < _set749.size; ++_i751)
{
_elem750 = iprot.readI64();
_val747.add(_elem750);
}
}
_val743.put(_key746, _val747);
}
}
struct.success.put(_key742, _val743);
}
}
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<diffKeyStartEnd_args, diffKeyStartEnd_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStartEnd_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyStartEnd_args> {
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<diffKeyStartEnd_args> {
@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<diffKeyStartEnd_result, diffKeyStartEnd_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStartEnd_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyStartEnd_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyStartEnd_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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 <i>other</i>.
*/
public diffKeyStartEnd_result(diffKeyStartEnd_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> 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<com.cinchapi.concourse.thrift.Diff,Set<Long>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<Long> 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<Long> __this__success_copy_value_copy_value = new LinkedHashSet<Long>(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<com.cinchapi.concourse.thrift.Diff,Set<Long>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> getSuccess() {
return this.success;
}
public diffKeyStartEnd_result setSuccess(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyStartEnd_result> {
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 _map752 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map752.size);
com.cinchapi.concourse.thrift.TObject _key753;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val754;
for (int _i755 = 0; _i755 < _map752.size; ++_i755)
{
_key753 = new com.cinchapi.concourse.thrift.TObject();
_key753.read(iprot);
{
org.apache.thrift.protocol.TMap _map756 = iprot.readMapBegin();
_val754 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map756.size);
com.cinchapi.concourse.thrift.Diff _key757;
Set<Long> _val758;
for (int _i759 = 0; _i759 < _map756.size; ++_i759)
{
_key757 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set760 = iprot.readSetBegin();
_val758 = new LinkedHashSet<Long>(2*_set760.size);
long _elem761;
for (int _i762 = 0; _i762 < _set760.size; ++_i762)
{
_elem761 = iprot.readI64();
_val758.add(_elem761);
}
iprot.readSetEnd();
}
_val754.put(_key757, _val758);
}
iprot.readMapEnd();
}
struct.success.put(_key753, _val754);
}
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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter763 : struct.success.entrySet())
{
_iter763.getKey().write(oprot);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter763.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter764 : _iter763.getValue().entrySet())
{
oprot.writeI32(_iter764.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter764.getValue().size()));
for (long _iter765 : _iter764.getValue())
{
oprot.writeI64(_iter765);
}
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<diffKeyStartEnd_result> {
@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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter766 : struct.success.entrySet())
{
_iter766.getKey().write(oprot);
{
oprot.writeI32(_iter766.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter767 : _iter766.getValue().entrySet())
{
oprot.writeI32(_iter767.getKey().getValue());
{
oprot.writeI32(_iter767.getValue().size());
for (long _iter768 : _iter767.getValue())
{
oprot.writeI64(_iter768);
}
}
}
}
}
}
}
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 _map769 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map769.size);
com.cinchapi.concourse.thrift.TObject _key770;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val771;
for (int _i772 = 0; _i772 < _map769.size; ++_i772)
{
_key770 = new com.cinchapi.concourse.thrift.TObject();
_key770.read(iprot);
{
org.apache.thrift.protocol.TMap _map773 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val771 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map773.size);
com.cinchapi.concourse.thrift.Diff _key774;
Set<Long> _val775;
for (int _i776 = 0; _i776 < _map773.size; ++_i776)
{
_key774 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set777 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
_val775 = new LinkedHashSet<Long>(2*_set777.size);
long _elem778;
for (int _i779 = 0; _i779 < _set777.size; ++_i779)
{
_elem778 = iprot.readI64();
_val775.add(_elem778);
}
}
_val771.put(_key774, _val775);
}
}
struct.success.put(_key770, _val771);
}
}
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<diffKeyStartstrEndstr_args, diffKeyStartstrEndstr_args._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStartstrEndstr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<diffKeyStartstrEndstr_args> {
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<diffKeyStartstrEndstr_args> {
@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<diffKeyStartstrEndstr_result, diffKeyStartstrEndstr_result._Fields>, java.io.Serializable, Cloneable, Comparable<diffKeyStartstrEndstr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new diffKeyStartstrEndstr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new diffKeyStartstrEndstr_resultTupleSchemeFactory());
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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 <i>other</i>.
*/
public diffKeyStartstrEndstr_result(diffKeyStartstrEndstr_result other) {
if (other.isSetSuccess()) {
Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> __this__success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(other.success.size());
for (Map.Entry<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> other_element : other.success.entrySet()) {
com.cinchapi.concourse.thrift.TObject other_element_key = other_element.getKey();
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> 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<com.cinchapi.concourse.thrift.Diff,Set<Long>> __this__success_copy_value = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(other_element_value.size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> other_element_value_element : other_element_value.entrySet()) {
com.cinchapi.concourse.thrift.Diff other_element_value_element_key = other_element_value_element.getKey();
Set<Long> 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<Long> __this__success_copy_value_copy_value = new LinkedHashSet<Long>(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<com.cinchapi.concourse.thrift.Diff,Set<Long>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>();
}
this.success.put(key, val);
}
public Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> getSuccess() {
return this.success;
}
public diffKeyStartstrEndstr_result setSuccess(Map<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> 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<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<diffKeyStartstrEndstr_result> {
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 _map780 = iprot.readMapBegin();
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map780.size);
com.cinchapi.concourse.thrift.TObject _key781;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val782;
for (int _i783 = 0; _i783 < _map780.size; ++_i783)
{
_key781 = new com.cinchapi.concourse.thrift.TObject();
_key781.read(iprot);
{
org.apache.thrift.protocol.TMap _map784 = iprot.readMapBegin();
_val782 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map784.size);
com.cinchapi.concourse.thrift.Diff _key785;
Set<Long> _val786;
for (int _i787 = 0; _i787 < _map784.size; ++_i787)
{
_key785 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set788 = iprot.readSetBegin();
_val786 = new LinkedHashSet<Long>(2*_set788.size);
long _elem789;
for (int _i790 = 0; _i790 < _set788.size; ++_i790)
{
_elem789 = iprot.readI64();
_val786.add(_elem789);
}
iprot.readSetEnd();
}
_val782.put(_key785, _val786);
}
iprot.readMapEnd();
}
struct.success.put(_key781, _val782);
}
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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter791 : struct.success.entrySet())
{
_iter791.getKey().write(oprot);
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, _iter791.getValue().size()));
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter792 : _iter791.getValue().entrySet())
{
oprot.writeI32(_iter792.getKey().getValue());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, _iter792.getValue().size()));
for (long _iter793 : _iter792.getValue())
{
oprot.writeI64(_iter793);
}
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<diffKeyStartstrEndstr_result> {
@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<com.cinchapi.concourse.thrift.TObject, Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>> _iter794 : struct.success.entrySet())
{
_iter794.getKey().write(oprot);
{
oprot.writeI32(_iter794.getValue().size());
for (Map.Entry<com.cinchapi.concourse.thrift.Diff, Set<Long>> _iter795 : _iter794.getValue().entrySet())
{
oprot.writeI32(_iter795.getKey().getValue());
{
oprot.writeI32(_iter795.getValue().size());
for (long _iter796 : _iter795.getValue())
{
oprot.writeI64(_iter796);
}
}
}
}
}
}
}
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 _map797 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRUCT, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<com.cinchapi.concourse.thrift.TObject,Map<com.cinchapi.concourse.thrift.Diff,Set<Long>>>(2*_map797.size);
com.cinchapi.concourse.thrift.TObject _key798;
Map<com.cinchapi.concourse.thrift.Diff,Set<Long>> _val799;
for (int _i800 = 0; _i800 < _map797.size; ++_i800)
{
_key798 = new com.cinchapi.concourse.thrift.TObject();
_key798.read(iprot);
{
org.apache.thrift.protocol.TMap _map801 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val799 = new LinkedHashMap<com.cinchapi.concourse.thrift.Diff,Set<Long>>(2*_map801.size);
com.cinchapi.concourse.thrift.Diff _key802;
Set<Long> _val803;
for (int _i804 = 0; _i804 < _map801.size; ++_i804)
{
_key802 = com.cinchapi.concourse.thrift.Diff.findByValue(iprot.readI32());
{
org.apache.thrift.protocol.TSet _set805 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
_val803 = new LinkedHashSet<Long>(2*_set805.size);
long _elem806;
for (int _i807 = 0; _i807 < _set805.size; ++_i807)
{
_elem806 = iprot.readI64();
_val803.add(_elem806);
}
}
_val799.put(_key802, _val803);
}
}
struct.success.put(_key798, _val799);
}
}
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<invokePlugin_args, invokePlugin_args._Fields>, java.io.Serializable, Cloneable, Comparable<invokePlugin_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.ComplexTObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // ID
return ID;
case 2: // 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<com.cinchapi.concourse.thrift.ComplexTObject> 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 <i>other</i>.
*/
public invokePlugin_args(invokePlugin_args other) {
if (other.isSetId()) {
this.id = other.id;
}
if (other.isSetMethod()) {
this.method = other.method;
}
if (other.isSetParams()) {
List<com.cinchapi.concourse.thrift.ComplexTObject> __this__params = new ArrayList<com.cinchapi.concourse.thrift.ComplexTObject>(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<com.cinchapi.concourse.thrift.ComplexTObject> 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<com.cinchapi.concourse.thrift.ComplexTObject>();
}
this.params.add(elem);
}
public List<com.cinchapi.concourse.thrift.ComplexTObject> getParams() {
return this.params;
}
public invokePlugin_args setParams(List<com.cinchapi.concourse.thrift.ComplexTObject> 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<com.cinchapi.concourse.thrift.ComplexTObject>)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<Object> list = new ArrayList<Object>();
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<invokePlugin_args> {
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 _list808 = iprot.readListBegin();
struct.params = new ArrayList<com.cinchapi.concourse.thrift.ComplexTObject>(_list808.size);
com.cinchapi.concourse.thrift.ComplexTObject _elem809;
for (int _i810 = 0; _i810 < _list808.size; ++_i810)
{
_elem809 = new com.cinchapi.concourse.thrift.ComplexTObject();
_elem809.read(iprot);
struct.params.add(_elem809);
}
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 _iter811 : struct.params)
{
_iter811.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<invokePlugin_args> {
@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 _iter812 : struct.params)
{
_iter812.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 _list813 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.params = new ArrayList<com.cinchapi.concourse.thrift.ComplexTObject>(_list813.size);
com.cinchapi.concourse.thrift.ComplexTObject _elem814;
for (int _i815 = 0; _i815 < _list813.size; ++_i815)
{
_elem814 = new com.cinchapi.concourse.thrift.ComplexTObject();
_elem814.read(iprot);
struct.params.add(_elem814);
}
}
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<invokePlugin_result, invokePlugin_result._Fields>, java.io.Serializable, Cloneable, Comparable<invokePlugin_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<invokePlugin_result> {
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<invokePlugin_result> {
@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<login_args, login_args._Fields>, java.io.Serializable, Cloneable, Comparable<login_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("login_args");
private static final org.apache.thrift.protocol.TField USERNAME_FIELD_DESC = new org.apache.thrift.protocol.TField("username", org.apache.thrift.protocol.TType.STRING, (short)1);
private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)2);
private static final 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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new login_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new login_argsTupleSchemeFactory());
}
public ByteBuffer username; // required
public ByteBuffer password; // required
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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // USERNAME
return USERNAME;
case 2: // PASSWORD
return PASSWORD;
case 3: // 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 <i>other</i>.
*/
public login_args(login_args other) {
if (other.isSetUsername()) {
this.username = org.apache.thrift.TBaseHelper.copyBinary(other.username);
}
if (other.isSetPassword()) {
this.password = org.apache.thrift.TBaseHelper.copyBinary(other.password);
}
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<Object> list = new ArrayList<Object>();
boolean present_username = true && (isSetUsername());
list.add(present_username);
if (present_username)
list.add(username);
boolean present_password = true && (isSetPassword());
list.add(present_password);
if (present_password)
list.add(password);
boolean present_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<login_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, login_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // USERNAME
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.username = iprot.readBinary();
struct.setUsernameIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 2: // PASSWORD
if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
struct.password = iprot.readBinary();
struct.setPasswordIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
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<login_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, login_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetUsername()) {
optionals.set(0);
}
if (struct.isSetPassword()) {
optionals.set(1);
}
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<login_result, login_result._Fields>, java.io.Serializable, Cloneable, Comparable<login_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("login_result");
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new login_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new login_resultTupleSchemeFactory());
}
public com.cinchapi.concourse.thrift.AccessToken success; // required
public com.cinchapi.concourse.thrift.SecurityException ex; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
SUCCESS((short)0, "success"),
EX((short)1, "ex");
private static final Map<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.AccessToken.class)));
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(login_result.class, metaDataMap);
}
public login_result() {
}
public login_result(
com.cinchapi.concourse.thrift.AccessToken success,
com.cinchapi.concourse.thrift.SecurityException ex)
{
this();
this.success = success;
this.ex = ex;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public login_result(login_result other) {
if (other.isSetSuccess()) {
this.success = new com.cinchapi.concourse.thrift.AccessToken(other.success);
}
if (other.isSetEx()) {
this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex);
}
}
public login_result deepCopy() {
return new login_result(this);
}
@Override
public void clear() {
this.success = null;
this.ex = null;
}
public com.cinchapi.concourse.thrift.AccessToken getSuccess() {
return this.success;
}
public login_result setSuccess(com.cinchapi.concourse.thrift.AccessToken success) {
this.success = success;
return this;
}
public void unsetSuccess() {
this.success = null;
}
/** Returns true if field success is set (has been assigned a value) and false otherwise */
public boolean isSetSuccess() {
return this.success != null;
}
public void setSuccessIsSet(boolean value) {
if (!value) {
this.success = null;
}
}
public com.cinchapi.concourse.thrift.SecurityException getEx() {
return this.ex;
}
public login_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) {
this.ex = ex;
return this;
}
public void unsetEx() {
this.ex = null;
}
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
public boolean isSetEx() {
return this.ex != null;
}
public void setExIsSet(boolean value) {
if (!value) {
this.ex = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case SUCCESS:
if (value == null) {
unsetSuccess();
} else {
setSuccess((com.cinchapi.concourse.thrift.AccessToken)value);
}
break;
case EX:
if (value == null) {
unsetEx();
} else {
setEx((com.cinchapi.concourse.thrift.SecurityException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case SUCCESS:
return getSuccess();
case EX:
return getEx();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case SUCCESS:
return isSetSuccess();
case EX:
return isSetEx();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof login_result)
return this.equals((login_result)that);
return false;
}
public boolean equals(login_result that) {
if (that == null)
return false;
boolean this_present_success = true && this.isSetSuccess();
boolean that_present_success = true && that.isSetSuccess();
if (this_present_success || that_present_success) {
if (!(this_present_success && that_present_success))
return false;
if (!this.success.equals(that.success))
return false;
}
boolean this_present_ex = true && this.isSetEx();
boolean that_present_ex = true && that.isSetEx();
if (this_present_ex || that_present_ex) {
if (!(this_present_ex && that_present_ex))
return false;
if (!this.ex.equals(that.ex))
return false;
}
return true;
}
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
return list.hashCode();
}
@Override
public int compareTo(login_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetSuccess()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
if (lastComparison != 0) {
return lastComparison;
}
}
lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEx()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("login_result(");
boolean first = true;
sb.append("success:");
if (this.success == null) {
sb.append("null");
} else {
sb.append(this.success);
}
first = false;
if (!first) sb.append(", ");
sb.append("ex:");
if (this.ex == null) {
sb.append("null");
} else {
sb.append(this.ex);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
if (success != null) {
success.validate();
}
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class login_resultStandardSchemeFactory implements SchemeFactory {
public login_resultStandardScheme getScheme() {
return new login_resultStandardScheme();
}
}
private static class login_resultStandardScheme extends StandardScheme<login_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, login_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 0: // SUCCESS
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.success = new com.cinchapi.concourse.thrift.AccessToken();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
case 1: // EX
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.ex = new com.cinchapi.concourse.thrift.SecurityException();
struct.ex.read(iprot);
struct.setExIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, login_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.success != null) {
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
struct.success.write(oprot);
oprot.writeFieldEnd();
}
if (struct.ex != null) {
oprot.writeFieldBegin(EX_FIELD_DESC);
struct.ex.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class login_resultTupleSchemeFactory implements SchemeFactory {
public login_resultTupleScheme getScheme() {
return new login_resultTupleScheme();
}
}
private static class login_resultTupleScheme extends TupleScheme<login_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, login_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetSuccess()) {
optionals.set(0);
}
if (struct.isSetEx()) {
optionals.set(1);
}
oprot.writeBitSet(optionals, 2);
if (struct.isSetSuccess()) {
struct.success.write(oprot);
}
if (struct.isSetEx()) {
struct.ex.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, login_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(2);
if (incoming.get(0)) {
struct.success = new com.cinchapi.concourse.thrift.AccessToken();
struct.success.read(iprot);
struct.setSuccessIsSet(true);
}
if (incoming.get(1)) {
struct.ex = new com.cinchapi.concourse.thrift.SecurityException();
struct.ex.read(iprot);
struct.setExIsSet(true);
}
}
}
}
public static class logout_args implements org.apache.thrift.TBase<logout_args, logout_args._Fields>, java.io.Serializable, Cloneable, Comparable<logout_args> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("logout_args");
private static final org.apache.thrift.protocol.TField 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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new logout_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new logout_argsTupleSchemeFactory());
}
public com.cinchapi.concourse.thrift.AccessToken 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TOKEN
return TOKEN;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<logout_args> {
public void read(org.apache.thrift.protocol.TProtocol iprot, logout_args struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // 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<logout_args> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, logout_args struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.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<logout_result, logout_result._Fields>, java.io.Serializable, Cloneable, Comparable<logout_result> {
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("logout_result");
private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new logout_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new logout_resultTupleSchemeFactory());
}
public com.cinchapi.concourse.thrift.SecurityException ex; // required
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
EX((short)1, "ex");
private static final Map<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
metaDataMap = Collections.unmodifiableMap(tmpMap);
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(logout_result.class, metaDataMap);
}
public logout_result() {
}
public logout_result(
com.cinchapi.concourse.thrift.SecurityException ex)
{
this();
this.ex = ex;
}
/**
* Performs a deep copy on <i>other</i>.
*/
public logout_result(logout_result other) {
if (other.isSetEx()) {
this.ex = new com.cinchapi.concourse.thrift.SecurityException(other.ex);
}
}
public logout_result deepCopy() {
return new logout_result(this);
}
@Override
public void clear() {
this.ex = null;
}
public com.cinchapi.concourse.thrift.SecurityException getEx() {
return this.ex;
}
public logout_result setEx(com.cinchapi.concourse.thrift.SecurityException ex) {
this.ex = ex;
return this;
}
public void unsetEx() {
this.ex = null;
}
/** Returns true if field ex is set (has been assigned a value) and false otherwise */
public boolean isSetEx() {
return this.ex != null;
}
public void setExIsSet(boolean value) {
if (!value) {
this.ex = null;
}
}
public void setFieldValue(_Fields field, Object value) {
switch (field) {
case EX:
if (value == null) {
unsetEx();
} else {
setEx((com.cinchapi.concourse.thrift.SecurityException)value);
}
break;
}
}
public Object getFieldValue(_Fields field) {
switch (field) {
case EX:
return getEx();
}
throw new IllegalStateException();
}
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
if (field == null) {
throw new IllegalArgumentException();
}
switch (field) {
case EX:
return isSetEx();
}
throw new IllegalStateException();
}
@Override
public boolean equals(Object that) {
if (that == null)
return false;
if (that instanceof logout_result)
return this.equals((logout_result)that);
return false;
}
public boolean equals(logout_result that) {
if (that == null)
return false;
boolean this_present_ex = true && this.isSetEx();
boolean that_present_ex = true && that.isSetEx();
if (this_present_ex || that_present_ex) {
if (!(this_present_ex && that_present_ex))
return false;
if (!this.ex.equals(that.ex))
return false;
}
return true;
}
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
return list.hashCode();
}
@Override
public int compareTo(logout_result other) {
if (!getClass().equals(other.getClass())) {
return getClass().getName().compareTo(other.getClass().getName());
}
int lastComparison = 0;
lastComparison = Boolean.valueOf(isSetEx()).compareTo(other.isSetEx());
if (lastComparison != 0) {
return lastComparison;
}
if (isSetEx()) {
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, other.ex);
if (lastComparison != 0) {
return lastComparison;
}
}
return 0;
}
public _Fields fieldForId(int fieldId) {
return _Fields.findByThriftId(fieldId);
}
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
}
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("logout_result(");
boolean first = true;
sb.append("ex:");
if (this.ex == null) {
sb.append("null");
} else {
sb.append(this.ex);
}
first = false;
sb.append(")");
return sb.toString();
}
public void validate() throws org.apache.thrift.TException {
// check for required fields
// check for sub-struct validity
}
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
try {
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
try {
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
} catch (org.apache.thrift.TException te) {
throw new java.io.IOException(te);
}
}
private static class logout_resultStandardSchemeFactory implements SchemeFactory {
public logout_resultStandardScheme getScheme() {
return new logout_resultStandardScheme();
}
}
private static class logout_resultStandardScheme extends StandardScheme<logout_result> {
public void read(org.apache.thrift.protocol.TProtocol iprot, logout_result struct) throws org.apache.thrift.TException {
org.apache.thrift.protocol.TField schemeField;
iprot.readStructBegin();
while (true)
{
schemeField = iprot.readFieldBegin();
if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
break;
}
switch (schemeField.id) {
case 1: // EX
if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
struct.ex = new com.cinchapi.concourse.thrift.SecurityException();
struct.ex.read(iprot);
struct.setExIsSet(true);
} else {
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
break;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required fields of primitive type, which can't be checked in the validate method
struct.validate();
}
public void write(org.apache.thrift.protocol.TProtocol oprot, logout_result struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.ex != null) {
oprot.writeFieldBegin(EX_FIELD_DESC);
struct.ex.write(oprot);
oprot.writeFieldEnd();
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}
}
private static class logout_resultTupleSchemeFactory implements SchemeFactory {
public logout_resultTupleScheme getScheme() {
return new logout_resultTupleScheme();
}
}
private static class logout_resultTupleScheme extends TupleScheme<logout_result> {
@Override
public void write(org.apache.thrift.protocol.TProtocol prot, logout_result struct) throws org.apache.thrift.TException {
TTupleProtocol oprot = (TTupleProtocol) prot;
BitSet optionals = new BitSet();
if (struct.isSetEx()) {
optionals.set(0);
}
oprot.writeBitSet(optionals, 1);
if (struct.isSetEx()) {
struct.ex.write(oprot);
}
}
@Override
public void read(org.apache.thrift.protocol.TProtocol prot, logout_result struct) throws org.apache.thrift.TException {
TTupleProtocol iprot = (TTupleProtocol) prot;
BitSet incoming = iprot.readBitSet(1);
if (incoming.get(0)) {
struct.ex = new com.cinchapi.concourse.thrift.SecurityException();
struct.ex.read(iprot);
struct.setExIsSet(true);
}
}
}
}
public static class stage_args implements org.apache.thrift.TBase<stage_args, stage_args._Fields>, java.io.Serializable, Cloneable, Comparable<stage_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // TOKEN
return TOKEN;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<stage_args> {
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<stage_args> {
@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<stage_result, stage_result._Fields>, java.io.Serializable, Cloneable, Comparable<stage_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
}
/**
* Find the _Fields constant that matches name, or null if its not found.
*/
public static _Fields findByName(String name) {
return byName.get(name);
}
private final short _thriftId;
private final String _fieldName;
_Fields(short thriftId, String fieldName) {
_thriftId = thriftId;
_fieldName = fieldName;
}
public short getThriftFieldId() {
return _thriftId;
}
public String getFieldName() {
return _fieldName;
}
}
// isset id assignments
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
static {
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, com.cinchapi.concourse.thrift.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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
return list.hashCode();
}
@Override
public int compareTo(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<stage_result> {
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<stage_result> {
@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<insertJson_args, insertJson_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertJson_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<insertJson_args> {
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<insertJson_args> {
@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<insertJson_result, insertJson_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertJson_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new insertJson_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new insertJson_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public insertJson_result(insertJson_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public insertJson_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<insertJson_result> {
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 _set816 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set816.size);
long _elem817;
for (int _i818 = 0; _i818 < _set816.size; ++_i818)
{
_elem817 = iprot.readI64();
struct.success.add(_elem817);
}
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 _iter819 : struct.success)
{
oprot.writeI64(_iter819);
}
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<insertJson_result> {
@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 _iter820 : struct.success)
{
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, 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 _set821 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set821.size);
long _elem822;
for (int _i823 = 0; _i823 < _set821.size; ++_i823)
{
_elem822 = iprot.readI64();
struct.success.add(_elem822);
}
}
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<insertJsonRecord_args, insertJsonRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertJsonRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<insertJsonRecord_args> {
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<insertJsonRecord_args> {
@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<insertJsonRecord_result, insertJsonRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertJsonRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<insertJsonRecord_result> {
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<insertJsonRecord_result> {
@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<insertJsonRecords_args, insertJsonRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertJsonRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new insertJsonRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new insertJsonRecords_argsTupleSchemeFactory());
}
public String json; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public insertJsonRecords_args(insertJsonRecords_args other) {
if (other.isSetJson()) {
this.json = other.json;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public insertJsonRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<insertJsonRecords_args> {
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 _list824 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list824.size);
long _elem825;
for (int _i826 = 0; _i826 < _list824.size; ++_i826)
{
_elem825 = iprot.readI64();
struct.records.add(_elem825);
}
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 _iter827 : struct.records)
{
oprot.writeI64(_iter827);
}
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<insertJsonRecords_args> {
@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 _iter828 : struct.records)
{
oprot.writeI64(_iter828);
}
}
}
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 _list829 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list829.size);
long _elem830;
for (int _i831 = 0; _i831 < _list829.size; ++_i831)
{
_elem830 = iprot.readI64();
struct.records.add(_elem830);
}
}
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<insertJsonRecords_result, insertJsonRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertJsonRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new insertJsonRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new insertJsonRecords_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Boolean> 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 <i>other</i>.
*/
public insertJsonRecords_result(insertJsonRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Boolean> __this__success = new LinkedHashMap<Long,Boolean>(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<Long,Boolean>();
}
this.success.put(key, val);
}
public Map<Long,Boolean> getSuccess() {
return this.success;
}
public insertJsonRecords_result setSuccess(Map<Long,Boolean> 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<insertJsonRecords_result> {
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 _map832 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Boolean>(2*_map832.size);
long _key833;
boolean _val834;
for (int _i835 = 0; _i835 < _map832.size; ++_i835)
{
_key833 = iprot.readI64();
_val834 = iprot.readBool();
struct.success.put(_key833, _val834);
}
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<Long, Boolean> _iter836 : struct.success.entrySet())
{
oprot.writeI64(_iter836.getKey());
oprot.writeBool(_iter836.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<insertJsonRecords_result> {
@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<Long, Boolean> _iter837 : struct.success.entrySet())
{
oprot.writeI64(_iter837.getKey());
oprot.writeBool(_iter837.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 _map838 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32());
struct.success = new LinkedHashMap<Long,Boolean>(2*_map838.size);
long _key839;
boolean _val840;
for (int _i841 = 0; _i841 < _map838.size; ++_i841)
{
_key839 = iprot.readI64();
_val840 = iprot.readBool();
struct.success.put(_key839, _val840);
}
}
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<removeKeyValueRecord_args, removeKeyValueRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeKeyValueRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<removeKeyValueRecord_args> {
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<removeKeyValueRecord_args> {
@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<removeKeyValueRecord_result, removeKeyValueRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeKeyValueRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<removeKeyValueRecord_result> {
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<removeKeyValueRecord_result> {
@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<removeKeyValueRecords_args, removeKeyValueRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<removeKeyValueRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
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<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public removeKeyValueRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<removeKeyValueRecords_args> {
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 _list842 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list842.size);
long _elem843;
for (int _i844 = 0; _i844 < _list842.size; ++_i844)
{
_elem843 = iprot.readI64();
struct.records.add(_elem843);
}
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 _iter845 : struct.records)
{
oprot.writeI64(_iter845);
}
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<removeKeyValueRecords_args> {
@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 _iter846 : struct.records)
{
oprot.writeI64(_iter846);
}
}
}
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 _list847 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list847.size);
long _elem848;
for (int _i849 = 0; _i849 < _list847.size; ++_i849)
{
_elem848 = iprot.readI64();
struct.records.add(_elem848);
}
}
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<removeKeyValueRecords_result, removeKeyValueRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<removeKeyValueRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new removeKeyValueRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new removeKeyValueRecords_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Boolean> 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 <i>other</i>.
*/
public removeKeyValueRecords_result(removeKeyValueRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Boolean> __this__success = new LinkedHashMap<Long,Boolean>(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<Long,Boolean>();
}
this.success.put(key, val);
}
public Map<Long,Boolean> getSuccess() {
return this.success;
}
public removeKeyValueRecords_result setSuccess(Map<Long,Boolean> 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<removeKeyValueRecords_result> {
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 _map850 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Boolean>(2*_map850.size);
long _key851;
boolean _val852;
for (int _i853 = 0; _i853 < _map850.size; ++_i853)
{
_key851 = iprot.readI64();
_val852 = iprot.readBool();
struct.success.put(_key851, _val852);
}
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<Long, Boolean> _iter854 : struct.success.entrySet())
{
oprot.writeI64(_iter854.getKey());
oprot.writeBool(_iter854.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<removeKeyValueRecords_result> {
@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<Long, Boolean> _iter855 : struct.success.entrySet())
{
oprot.writeI64(_iter855.getKey());
oprot.writeBool(_iter855.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 _map856 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.BOOL, iprot.readI32());
struct.success = new LinkedHashMap<Long,Boolean>(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);
}
}
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<setKeyValueRecord_args, setKeyValueRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<setKeyValueRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<setKeyValueRecord_args> {
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<setKeyValueRecord_args> {
@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<setKeyValueRecord_result, setKeyValueRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<setKeyValueRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<setKeyValueRecord_result> {
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<setKeyValueRecord_result> {
@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<setKeyValue_args, setKeyValue_args._Fields>, java.io.Serializable, Cloneable, Comparable<setKeyValue_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<setKeyValue_args> {
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<setKeyValue_args> {
@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<setKeyValue_result, setKeyValue_result._Fields>, java.io.Serializable, Cloneable, Comparable<setKeyValue_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<setKeyValue_result> {
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<setKeyValue_result> {
@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<setKeyValueRecords_args, setKeyValueRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<setKeyValueRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
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<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public setKeyValueRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<setKeyValueRecords_args> {
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 _list860 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list860.size);
long _elem861;
for (int _i862 = 0; _i862 < _list860.size; ++_i862)
{
_elem861 = iprot.readI64();
struct.records.add(_elem861);
}
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 _iter863 : struct.records)
{
oprot.writeI64(_iter863);
}
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<setKeyValueRecords_args> {
@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 _iter864 : struct.records)
{
oprot.writeI64(_iter864);
}
}
}
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 _list865 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list865.size);
long _elem866;
for (int _i867 = 0; _i867 < _list865.size; ++_i867)
{
_elem866 = iprot.readI64();
struct.records.add(_elem866);
}
}
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<setKeyValueRecords_result, setKeyValueRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<setKeyValueRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<setKeyValueRecords_result> {
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<setKeyValueRecords_result> {
@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<reconcileKeyRecordValues_args, reconcileKeyRecordValues_args._Fields>, java.io.Serializable, Cloneable, Comparable<reconcileKeyRecordValues_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.TObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<com.cinchapi.concourse.thrift.TObject> 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 <i>other</i>.
*/
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<com.cinchapi.concourse.thrift.TObject> __this__values = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.values.add(elem);
}
public Set<com.cinchapi.concourse.thrift.TObject> getValues() {
return this.values;
}
public reconcileKeyRecordValues_args setValues(Set<com.cinchapi.concourse.thrift.TObject> 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<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 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<Object> list = new ArrayList<Object>();
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<reconcileKeyRecordValues_args> {
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 _set868 = iprot.readSetBegin();
struct.values = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set868.size);
com.cinchapi.concourse.thrift.TObject _elem869;
for (int _i870 = 0; _i870 < _set868.size; ++_i870)
{
_elem869 = new com.cinchapi.concourse.thrift.TObject();
_elem869.read(iprot);
struct.values.add(_elem869);
}
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 _iter871 : struct.values)
{
_iter871.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<reconcileKeyRecordValues_args> {
@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 _iter872 : struct.values)
{
_iter872.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 _set873 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set873.size);
com.cinchapi.concourse.thrift.TObject _elem874;
for (int _i875 = 0; _i875 < _set873.size; ++_i875)
{
_elem874 = new com.cinchapi.concourse.thrift.TObject();
_elem874.read(iprot);
struct.values.add(_elem874);
}
}
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<reconcileKeyRecordValues_result, reconcileKeyRecordValues_result._Fields>, java.io.Serializable, Cloneable, Comparable<reconcileKeyRecordValues_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<reconcileKeyRecordValues_result> {
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<reconcileKeyRecordValues_result> {
@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<inventory_args, inventory_args._Fields>, java.io.Serializable, Cloneable, Comparable<inventory_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // CREDS
return CREDS;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<inventory_args> {
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<inventory_args> {
@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<inventory_result, inventory_result._Fields>, java.io.Serializable, Cloneable, Comparable<inventory_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new inventory_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new inventory_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public inventory_result(inventory_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public inventory_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<inventory_result> {
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 _set876 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set876.size);
long _elem877;
for (int _i878 = 0; _i878 < _set876.size; ++_i878)
{
_elem877 = iprot.readI64();
struct.success.add(_elem877);
}
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 _iter879 : struct.success)
{
oprot.writeI64(_iter879);
}
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<inventory_result> {
@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 _iter880 : struct.success)
{
oprot.writeI64(_iter880);
}
}
}
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 _set881 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set881.size);
long _elem882;
for (int _i883 = 0; _i883 < _set881.size; ++_i883)
{
_elem882 = iprot.readI64();
struct.success.add(_elem882);
}
}
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<selectRecord_args, selectRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectRecord_args> {
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<selectRecord_args> {
@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<selectRecord_result, selectRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecord_resultTupleSchemeFactory());
}
public Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Set<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 <i>other</i>.
*/
public selectRecord_result(selectRecord_result other) {
if (other.isSetSuccess()) {
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<String,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectRecord_result setSuccess(Map<String,Set<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 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<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectRecord_result> {
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 _map884 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map884.size);
String _key885;
Set<com.cinchapi.concourse.thrift.TObject> _val886;
for (int _i887 = 0; _i887 < _map884.size; ++_i887)
{
_key885 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set888 = iprot.readSetBegin();
_val886 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set888.size);
com.cinchapi.concourse.thrift.TObject _elem889;
for (int _i890 = 0; _i890 < _set888.size; ++_i890)
{
_elem889 = new com.cinchapi.concourse.thrift.TObject();
_elem889.read(iprot);
_val886.add(_elem889);
}
iprot.readSetEnd();
}
struct.success.put(_key885, _val886);
}
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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter891 : struct.success.entrySet())
{
oprot.writeString(_iter891.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter891.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter892 : _iter891.getValue())
{
_iter892.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<selectRecord_result> {
@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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter893 : struct.success.entrySet())
{
oprot.writeString(_iter893.getKey());
{
oprot.writeI32(_iter893.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter894 : _iter893.getValue())
{
_iter894.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 _map895 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map895.size);
String _key896;
Set<com.cinchapi.concourse.thrift.TObject> _val897;
for (int _i898 = 0; _i898 < _map895.size; ++_i898)
{
_key896 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set899 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val897 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set899.size);
com.cinchapi.concourse.thrift.TObject _elem900;
for (int _i901 = 0; _i901 < _set899.size; ++_i901)
{
_elem900 = new com.cinchapi.concourse.thrift.TObject();
_elem900.read(iprot);
_val897.add(_elem900);
}
}
struct.success.put(_key896, _val897);
}
}
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<selectRecords_args, selectRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecords_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public selectRecords_args(selectRecords_args other) {
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<selectRecords_args> {
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 _list902 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list902.size);
long _elem903;
for (int _i904 = 0; _i904 < _list902.size; ++_i904)
{
_elem903 = iprot.readI64();
struct.records.add(_elem903);
}
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 _iter905 : struct.records)
{
oprot.writeI64(_iter905);
}
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<selectRecords_args> {
@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 _iter906 : struct.records)
{
oprot.writeI64(_iter906);
}
}
}
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 _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list907.size);
long _elem908;
for (int _i909 = 0; _i909 < _list907.size; ++_i909)
{
_elem908 = iprot.readI64();
struct.records.add(_elem908);
}
}
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<selectRecords_result, selectRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecords_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectRecords_result(selectRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectRecords_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectRecords_result> {
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 _map910 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map910.size);
long _key911;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val912;
for (int _i913 = 0; _i913 < _map910.size; ++_i913)
{
_key911 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map914 = iprot.readMapBegin();
_val912 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map914.size);
String _key915;
Set<com.cinchapi.concourse.thrift.TObject> _val916;
for (int _i917 = 0; _i917 < _map914.size; ++_i917)
{
_key915 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set918 = iprot.readSetBegin();
_val916 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set918.size);
com.cinchapi.concourse.thrift.TObject _elem919;
for (int _i920 = 0; _i920 < _set918.size; ++_i920)
{
_elem919 = new com.cinchapi.concourse.thrift.TObject();
_elem919.read(iprot);
_val916.add(_elem919);
}
iprot.readSetEnd();
}
_val912.put(_key915, _val916);
}
iprot.readMapEnd();
}
struct.success.put(_key911, _val912);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter921 : struct.success.entrySet())
{
oprot.writeI64(_iter921.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter921.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter922 : _iter921.getValue().entrySet())
{
oprot.writeString(_iter922.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter922.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter923 : _iter922.getValue())
{
_iter923.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<selectRecords_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter924 : struct.success.entrySet())
{
oprot.writeI64(_iter924.getKey());
{
oprot.writeI32(_iter924.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter925 : _iter924.getValue().entrySet())
{
oprot.writeString(_iter925.getKey());
{
oprot.writeI32(_iter925.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter926 : _iter925.getValue())
{
_iter926.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 _map927 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map927.size);
long _key928;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val929;
for (int _i930 = 0; _i930 < _map927.size; ++_i930)
{
_key928 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map931 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val929 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map931.size);
String _key932;
Set<com.cinchapi.concourse.thrift.TObject> _val933;
for (int _i934 = 0; _i934 < _map931.size; ++_i934)
{
_key932 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set935 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val933 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set935.size);
com.cinchapi.concourse.thrift.TObject _elem936;
for (int _i937 = 0; _i937 < _set935.size; ++_i937)
{
_elem936 = new com.cinchapi.concourse.thrift.TObject();
_elem936.read(iprot);
_val933.add(_elem936);
}
}
_val929.put(_key932, _val933);
}
}
struct.success.put(_key928, _val929);
}
}
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<selectRecordTime_args, selectRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectRecordTime_args> {
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<selectRecordTime_args> {
@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<selectRecordTime_result, selectRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecordTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecordTime_resultTupleSchemeFactory());
}
public Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Set<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 <i>other</i>.
*/
public selectRecordTime_result(selectRecordTime_result other) {
if (other.isSetSuccess()) {
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<String,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectRecordTime_result setSuccess(Map<String,Set<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 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<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectRecordTime_result> {
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 _map938 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map938.size);
String _key939;
Set<com.cinchapi.concourse.thrift.TObject> _val940;
for (int _i941 = 0; _i941 < _map938.size; ++_i941)
{
_key939 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set942 = iprot.readSetBegin();
_val940 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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();
}
struct.success.put(_key939, _val940);
}
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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter945 : struct.success.entrySet())
{
oprot.writeString(_iter945.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter945.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter946 : _iter945.getValue())
{
_iter946.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<selectRecordTime_result> {
@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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter947 : struct.success.entrySet())
{
oprot.writeString(_iter947.getKey());
{
oprot.writeI32(_iter947.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter948 : _iter947.getValue())
{
_iter948.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 _map949 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map949.size);
String _key950;
Set<com.cinchapi.concourse.thrift.TObject> _val951;
for (int _i952 = 0; _i952 < _map949.size; ++_i952)
{
_key950 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set953 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val951 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set953.size);
com.cinchapi.concourse.thrift.TObject _elem954;
for (int _i955 = 0; _i955 < _set953.size; ++_i955)
{
_elem954 = new com.cinchapi.concourse.thrift.TObject();
_elem954.read(iprot);
_val951.add(_elem954);
}
}
struct.success.put(_key950, _val951);
}
}
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<selectRecordTimestr_args, selectRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectRecordTimestr_args> {
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<selectRecordTimestr_args> {
@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<selectRecordTimestr_result, selectRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecordTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecordTimestr_resultTupleSchemeFactory());
}
public Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Set<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 <i>other</i>.
*/
public selectRecordTimestr_result(selectRecordTimestr_result other) {
if (other.isSetSuccess()) {
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<String,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectRecordTimestr_result setSuccess(Map<String,Set<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 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<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectRecordTimestr_result> {
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 _map956 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map956.size);
String _key957;
Set<com.cinchapi.concourse.thrift.TObject> _val958;
for (int _i959 = 0; _i959 < _map956.size; ++_i959)
{
_key957 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set960 = iprot.readSetBegin();
_val958 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set960.size);
com.cinchapi.concourse.thrift.TObject _elem961;
for (int _i962 = 0; _i962 < _set960.size; ++_i962)
{
_elem961 = new com.cinchapi.concourse.thrift.TObject();
_elem961.read(iprot);
_val958.add(_elem961);
}
iprot.readSetEnd();
}
struct.success.put(_key957, _val958);
}
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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter963 : struct.success.entrySet())
{
oprot.writeString(_iter963.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter963.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter964 : _iter963.getValue())
{
_iter964.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<selectRecordTimestr_result> {
@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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter965 : struct.success.entrySet())
{
oprot.writeString(_iter965.getKey());
{
oprot.writeI32(_iter965.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter966 : _iter965.getValue())
{
_iter966.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 _map967 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map967.size);
String _key968;
Set<com.cinchapi.concourse.thrift.TObject> _val969;
for (int _i970 = 0; _i970 < _map967.size; ++_i970)
{
_key968 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set971 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val969 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set971.size);
com.cinchapi.concourse.thrift.TObject _elem972;
for (int _i973 = 0; _i973 < _set971.size; ++_i973)
{
_elem972 = new com.cinchapi.concourse.thrift.TObject();
_elem972.read(iprot);
_val969.add(_elem972);
}
}
struct.success.put(_key968, _val969);
}
}
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<selectRecordsTime_args, selectRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecordsTime_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public selectRecordsTime_args(selectRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectRecordsTime_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<selectRecordsTime_args> {
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 _list974 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list974.size);
long _elem975;
for (int _i976 = 0; _i976 < _list974.size; ++_i976)
{
_elem975 = iprot.readI64();
struct.records.add(_elem975);
}
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 _iter977 : struct.records)
{
oprot.writeI64(_iter977);
}
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<selectRecordsTime_args> {
@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 _iter978 : struct.records)
{
oprot.writeI64(_iter978);
}
}
}
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 _list979 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list979.size);
long _elem980;
for (int _i981 = 0; _i981 < _list979.size; ++_i981)
{
_elem980 = iprot.readI64();
struct.records.add(_elem980);
}
}
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<selectRecordsTime_result, selectRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecordsTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecordsTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectRecordsTime_result(selectRecordsTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectRecordsTime_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectRecordsTime_result> {
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 _map982 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map982.size);
long _key983;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val984;
for (int _i985 = 0; _i985 < _map982.size; ++_i985)
{
_key983 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map986 = iprot.readMapBegin();
_val984 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map986.size);
String _key987;
Set<com.cinchapi.concourse.thrift.TObject> _val988;
for (int _i989 = 0; _i989 < _map986.size; ++_i989)
{
_key987 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set990 = iprot.readSetBegin();
_val988 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set990.size);
com.cinchapi.concourse.thrift.TObject _elem991;
for (int _i992 = 0; _i992 < _set990.size; ++_i992)
{
_elem991 = new com.cinchapi.concourse.thrift.TObject();
_elem991.read(iprot);
_val988.add(_elem991);
}
iprot.readSetEnd();
}
_val984.put(_key987, _val988);
}
iprot.readMapEnd();
}
struct.success.put(_key983, _val984);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter993 : struct.success.entrySet())
{
oprot.writeI64(_iter993.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter993.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter994 : _iter993.getValue().entrySet())
{
oprot.writeString(_iter994.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter994.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter995 : _iter994.getValue())
{
_iter995.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<selectRecordsTime_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter996 : struct.success.entrySet())
{
oprot.writeI64(_iter996.getKey());
{
oprot.writeI32(_iter996.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter997 : _iter996.getValue().entrySet())
{
oprot.writeString(_iter997.getKey());
{
oprot.writeI32(_iter997.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter998 : _iter997.getValue())
{
_iter998.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 _map999 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map999.size);
long _key1000;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1001;
for (int _i1002 = 0; _i1002 < _map999.size; ++_i1002)
{
_key1000 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1003 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1001 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1003.size);
String _key1004;
Set<com.cinchapi.concourse.thrift.TObject> _val1005;
for (int _i1006 = 0; _i1006 < _map1003.size; ++_i1006)
{
_key1004 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1007 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1005 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1007.size);
com.cinchapi.concourse.thrift.TObject _elem1008;
for (int _i1009 = 0; _i1009 < _set1007.size; ++_i1009)
{
_elem1008 = new com.cinchapi.concourse.thrift.TObject();
_elem1008.read(iprot);
_val1005.add(_elem1008);
}
}
_val1001.put(_key1004, _val1005);
}
}
struct.success.put(_key1000, _val1001);
}
}
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<selectRecordsTimestr_args, selectRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecordsTimestr_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public selectRecordsTimestr_args(selectRecordsTimestr_args other) {
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectRecordsTimestr_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<selectRecordsTimestr_args> {
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 _list1010 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1010.size);
long _elem1011;
for (int _i1012 = 0; _i1012 < _list1010.size; ++_i1012)
{
_elem1011 = iprot.readI64();
struct.records.add(_elem1011);
}
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 _iter1013 : struct.records)
{
oprot.writeI64(_iter1013);
}
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<selectRecordsTimestr_args> {
@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 _iter1014 : struct.records)
{
oprot.writeI64(_iter1014);
}
}
}
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 _list1015 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1015.size);
long _elem1016;
for (int _i1017 = 0; _i1017 < _list1015.size; ++_i1017)
{
_elem1016 = iprot.readI64();
struct.records.add(_elem1016);
}
}
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<selectRecordsTimestr_result, selectRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectRecordsTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectRecordsTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectRecordsTimestr_result(selectRecordsTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectRecordsTimestr_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectRecordsTimestr_result> {
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 _map1018 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1018.size);
long _key1019;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1020;
for (int _i1021 = 0; _i1021 < _map1018.size; ++_i1021)
{
_key1019 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1022 = iprot.readMapBegin();
_val1020 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1022.size);
String _key1023;
Set<com.cinchapi.concourse.thrift.TObject> _val1024;
for (int _i1025 = 0; _i1025 < _map1022.size; ++_i1025)
{
_key1023 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1026 = iprot.readSetBegin();
_val1024 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1026.size);
com.cinchapi.concourse.thrift.TObject _elem1027;
for (int _i1028 = 0; _i1028 < _set1026.size; ++_i1028)
{
_elem1027 = new com.cinchapi.concourse.thrift.TObject();
_elem1027.read(iprot);
_val1024.add(_elem1027);
}
iprot.readSetEnd();
}
_val1020.put(_key1023, _val1024);
}
iprot.readMapEnd();
}
struct.success.put(_key1019, _val1020);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1029 : struct.success.entrySet())
{
oprot.writeI64(_iter1029.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1029.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1030 : _iter1029.getValue().entrySet())
{
oprot.writeString(_iter1030.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1030.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1031 : _iter1030.getValue())
{
_iter1031.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<selectRecordsTimestr_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1032 : struct.success.entrySet())
{
oprot.writeI64(_iter1032.getKey());
{
oprot.writeI32(_iter1032.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1033 : _iter1032.getValue().entrySet())
{
oprot.writeString(_iter1033.getKey());
{
oprot.writeI32(_iter1033.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1034 : _iter1033.getValue())
{
_iter1034.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 _map1035 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1035.size);
long _key1036;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1037;
for (int _i1038 = 0; _i1038 < _map1035.size; ++_i1038)
{
_key1036 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1039 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1037 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1039.size);
String _key1040;
Set<com.cinchapi.concourse.thrift.TObject> _val1041;
for (int _i1042 = 0; _i1042 < _map1039.size; ++_i1042)
{
_key1040 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1043 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1041 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1043.size);
com.cinchapi.concourse.thrift.TObject _elem1044;
for (int _i1045 = 0; _i1045 < _set1043.size; ++_i1045)
{
_elem1044 = new com.cinchapi.concourse.thrift.TObject();
_elem1044.read(iprot);
_val1041.add(_elem1044);
}
}
_val1037.put(_key1040, _val1041);
}
}
struct.success.put(_key1036, _val1037);
}
}
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<selectKeyRecord_args, selectKeyRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyRecord_args> {
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<selectKeyRecord_args> {
@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<selectKeyRecord_result, selectKeyRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecord_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<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 <i>other</i>.
*/
public selectKeyRecord_result(selectKeyRecord_result other) {
if (other.isSetSuccess()) {
Set<com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.success.add(elem);
}
public Set<com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public selectKeyRecord_result setSuccess(Set<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 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyRecord_result> {
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 _set1046 = iprot.readSetBegin();
struct.success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1046.size);
com.cinchapi.concourse.thrift.TObject _elem1047;
for (int _i1048 = 0; _i1048 < _set1046.size; ++_i1048)
{
_elem1047 = new com.cinchapi.concourse.thrift.TObject();
_elem1047.read(iprot);
struct.success.add(_elem1047);
}
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 _iter1049 : struct.success)
{
_iter1049.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<selectKeyRecord_result> {
@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 _iter1050 : struct.success)
{
_iter1050.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 _set1051 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1051.size);
com.cinchapi.concourse.thrift.TObject _elem1052;
for (int _i1053 = 0; _i1053 < _set1051.size; ++_i1053)
{
_elem1052 = new com.cinchapi.concourse.thrift.TObject();
_elem1052.read(iprot);
struct.success.add(_elem1052);
}
}
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<selectKeyRecordTime_args, selectKeyRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyRecordTime_args> {
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<selectKeyRecordTime_args> {
@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<selectKeyRecordTime_result, selectKeyRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecordTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecordTime_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<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 <i>other</i>.
*/
public selectKeyRecordTime_result(selectKeyRecordTime_result other) {
if (other.isSetSuccess()) {
Set<com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.success.add(elem);
}
public Set<com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public selectKeyRecordTime_result setSuccess(Set<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 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyRecordTime_result> {
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 _set1054 = iprot.readSetBegin();
struct.success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1054.size);
com.cinchapi.concourse.thrift.TObject _elem1055;
for (int _i1056 = 0; _i1056 < _set1054.size; ++_i1056)
{
_elem1055 = new com.cinchapi.concourse.thrift.TObject();
_elem1055.read(iprot);
struct.success.add(_elem1055);
}
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 _iter1057 : struct.success)
{
_iter1057.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<selectKeyRecordTime_result> {
@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 _iter1058 : struct.success)
{
_iter1058.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 _set1059 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1059.size);
com.cinchapi.concourse.thrift.TObject _elem1060;
for (int _i1061 = 0; _i1061 < _set1059.size; ++_i1061)
{
_elem1060 = new com.cinchapi.concourse.thrift.TObject();
_elem1060.read(iprot);
struct.success.add(_elem1060);
}
}
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<selectKeyRecordTimestr_args, selectKeyRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyRecordTimestr_args> {
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<selectKeyRecordTimestr_args> {
@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<selectKeyRecordTimestr_result, selectKeyRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecordTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecordTimestr_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<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 <i>other</i>.
*/
public selectKeyRecordTimestr_result(selectKeyRecordTimestr_result other) {
if (other.isSetSuccess()) {
Set<com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.success.add(elem);
}
public Set<com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public selectKeyRecordTimestr_result setSuccess(Set<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 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyRecordTimestr_result> {
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 _set1062 = iprot.readSetBegin();
struct.success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1062.size);
com.cinchapi.concourse.thrift.TObject _elem1063;
for (int _i1064 = 0; _i1064 < _set1062.size; ++_i1064)
{
_elem1063 = new com.cinchapi.concourse.thrift.TObject();
_elem1063.read(iprot);
struct.success.add(_elem1063);
}
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 _iter1065 : struct.success)
{
_iter1065.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<selectKeyRecordTimestr_result> {
@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 _iter1066 : struct.success)
{
_iter1066.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 _set1067 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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);
struct.success.add(_elem1068);
}
}
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<selectKeysRecord_args, selectKeysRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecord_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecord_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysRecord_args(selectKeysRecord_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysRecord_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysRecord_args> {
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 _list1070 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1070.size);
String _elem1071;
for (int _i1072 = 0; _i1072 < _list1070.size; ++_i1072)
{
_elem1071 = iprot.readString();
struct.keys.add(_elem1071);
}
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 _iter1073 : struct.keys)
{
oprot.writeString(_iter1073);
}
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<selectKeysRecord_args> {
@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 _iter1074 : struct.keys)
{
oprot.writeString(_iter1074);
}
}
}
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 _list1075 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1075.size);
String _elem1076;
for (int _i1077 = 0; _i1077 < _list1075.size; ++_i1077)
{
_elem1076 = iprot.readString();
struct.keys.add(_elem1076);
}
}
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<selectKeysRecord_result, selectKeysRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecord_resultTupleSchemeFactory());
}
public Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Set<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 <i>other</i>.
*/
public selectKeysRecord_result(selectKeysRecord_result other) {
if (other.isSetSuccess()) {
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<String,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeysRecord_result setSuccess(Map<String,Set<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 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<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysRecord_result> {
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 _map1078 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1078.size);
String _key1079;
Set<com.cinchapi.concourse.thrift.TObject> _val1080;
for (int _i1081 = 0; _i1081 < _map1078.size; ++_i1081)
{
_key1079 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1082 = iprot.readSetBegin();
_val1080 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1082.size);
com.cinchapi.concourse.thrift.TObject _elem1083;
for (int _i1084 = 0; _i1084 < _set1082.size; ++_i1084)
{
_elem1083 = new com.cinchapi.concourse.thrift.TObject();
_elem1083.read(iprot);
_val1080.add(_elem1083);
}
iprot.readSetEnd();
}
struct.success.put(_key1079, _val1080);
}
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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1085 : struct.success.entrySet())
{
oprot.writeString(_iter1085.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1085.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1086 : _iter1085.getValue())
{
_iter1086.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<selectKeysRecord_result> {
@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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1087 : struct.success.entrySet())
{
oprot.writeString(_iter1087.getKey());
{
oprot.writeI32(_iter1087.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1088 : _iter1087.getValue())
{
_iter1088.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 _map1089 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1089.size);
String _key1090;
Set<com.cinchapi.concourse.thrift.TObject> _val1091;
for (int _i1092 = 0; _i1092 < _map1089.size; ++_i1092)
{
_key1090 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1093 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1091 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1093.size);
com.cinchapi.concourse.thrift.TObject _elem1094;
for (int _i1095 = 0; _i1095 < _set1093.size; ++_i1095)
{
_elem1094 = new com.cinchapi.concourse.thrift.TObject();
_elem1094.read(iprot);
_val1091.add(_elem1094);
}
}
struct.success.put(_key1090, _val1091);
}
}
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<selectKeysRecordTime_args, selectKeysRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysRecordTime_args(selectKeysRecordTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysRecordTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysRecordTime_args> {
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 _list1096 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1096.size);
String _elem1097;
for (int _i1098 = 0; _i1098 < _list1096.size; ++_i1098)
{
_elem1097 = iprot.readString();
struct.keys.add(_elem1097);
}
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 _iter1099 : struct.keys)
{
oprot.writeString(_iter1099);
}
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<selectKeysRecordTime_args> {
@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 _iter1100 : struct.keys)
{
oprot.writeString(_iter1100);
}
}
}
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 _list1101 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1101.size);
String _elem1102;
for (int _i1103 = 0; _i1103 < _list1101.size; ++_i1103)
{
_elem1102 = iprot.readString();
struct.keys.add(_elem1102);
}
}
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<selectKeysRecordTime_result, selectKeysRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordTime_resultTupleSchemeFactory());
}
public Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Set<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 <i>other</i>.
*/
public selectKeysRecordTime_result(selectKeysRecordTime_result other) {
if (other.isSetSuccess()) {
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<String,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeysRecordTime_result setSuccess(Map<String,Set<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 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<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysRecordTime_result> {
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 _map1104 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1104.size);
String _key1105;
Set<com.cinchapi.concourse.thrift.TObject> _val1106;
for (int _i1107 = 0; _i1107 < _map1104.size; ++_i1107)
{
_key1105 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1108 = iprot.readSetBegin();
_val1106 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1108.size);
com.cinchapi.concourse.thrift.TObject _elem1109;
for (int _i1110 = 0; _i1110 < _set1108.size; ++_i1110)
{
_elem1109 = new com.cinchapi.concourse.thrift.TObject();
_elem1109.read(iprot);
_val1106.add(_elem1109);
}
iprot.readSetEnd();
}
struct.success.put(_key1105, _val1106);
}
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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1111 : struct.success.entrySet())
{
oprot.writeString(_iter1111.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1111.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1112 : _iter1111.getValue())
{
_iter1112.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<selectKeysRecordTime_result> {
@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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1113 : struct.success.entrySet())
{
oprot.writeString(_iter1113.getKey());
{
oprot.writeI32(_iter1113.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1114 : _iter1113.getValue())
{
_iter1114.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 _map1115 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1115.size);
String _key1116;
Set<com.cinchapi.concourse.thrift.TObject> _val1117;
for (int _i1118 = 0; _i1118 < _map1115.size; ++_i1118)
{
_key1116 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1119 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1117 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1119.size);
com.cinchapi.concourse.thrift.TObject _elem1120;
for (int _i1121 = 0; _i1121 < _set1119.size; ++_i1121)
{
_elem1120 = new com.cinchapi.concourse.thrift.TObject();
_elem1120.read(iprot);
_val1117.add(_elem1120);
}
}
struct.success.put(_key1116, _val1117);
}
}
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<selectKeysRecordTimestr_args, selectKeysRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysRecordTimestr_args(selectKeysRecordTimestr_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysRecordTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysRecordTimestr_args> {
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 _list1122 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1122.size);
String _elem1123;
for (int _i1124 = 0; _i1124 < _list1122.size; ++_i1124)
{
_elem1123 = iprot.readString();
struct.keys.add(_elem1123);
}
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 _iter1125 : struct.keys)
{
oprot.writeString(_iter1125);
}
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<selectKeysRecordTimestr_args> {
@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 _iter1126 : struct.keys)
{
oprot.writeString(_iter1126);
}
}
}
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 _list1127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1127.size);
String _elem1128;
for (int _i1129 = 0; _i1129 < _list1127.size; ++_i1129)
{
_elem1128 = iprot.readString();
struct.keys.add(_elem1128);
}
}
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<selectKeysRecordTimestr_result, selectKeysRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordTimestr_resultTupleSchemeFactory());
}
public Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,Set<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 <i>other</i>.
*/
public selectKeysRecordTimestr_result(selectKeysRecordTimestr_result other) {
if (other.isSetSuccess()) {
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
String other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
String __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<String,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeysRecordTimestr_result setSuccess(Map<String,Set<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 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<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysRecordTimestr_result> {
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 _map1130 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1130.size);
String _key1131;
Set<com.cinchapi.concourse.thrift.TObject> _val1132;
for (int _i1133 = 0; _i1133 < _map1130.size; ++_i1133)
{
_key1131 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1134 = iprot.readSetBegin();
_val1132 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1134.size);
com.cinchapi.concourse.thrift.TObject _elem1135;
for (int _i1136 = 0; _i1136 < _set1134.size; ++_i1136)
{
_elem1135 = new com.cinchapi.concourse.thrift.TObject();
_elem1135.read(iprot);
_val1132.add(_elem1135);
}
iprot.readSetEnd();
}
struct.success.put(_key1131, _val1132);
}
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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1137 : struct.success.entrySet())
{
oprot.writeString(_iter1137.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1137.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1138 : _iter1137.getValue())
{
_iter1138.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<selectKeysRecordTimestr_result> {
@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<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1139 : struct.success.entrySet())
{
oprot.writeString(_iter1139.getKey());
{
oprot.writeI32(_iter1139.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1140 : _iter1139.getValue())
{
_iter1140.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 _map1141 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1141.size);
String _key1142;
Set<com.cinchapi.concourse.thrift.TObject> _val1143;
for (int _i1144 = 0; _i1144 < _map1141.size; ++_i1144)
{
_key1142 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1145 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1143 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1145.size);
com.cinchapi.concourse.thrift.TObject _elem1146;
for (int _i1147 = 0; _i1147 < _set1145.size; ++_i1147)
{
_elem1146 = new com.cinchapi.concourse.thrift.TObject();
_elem1146.read(iprot);
_val1143.add(_elem1146);
}
}
struct.success.put(_key1142, _val1143);
}
}
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<selectKeysRecords_args, selectKeysRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecords_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public selectKeysRecords_args(selectKeysRecords_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysRecords_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectKeysRecords_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<selectKeysRecords_args> {
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 _list1148 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1148.size);
String _elem1149;
for (int _i1150 = 0; _i1150 < _list1148.size; ++_i1150)
{
_elem1149 = iprot.readString();
struct.keys.add(_elem1149);
}
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 _list1151 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1151.size);
long _elem1152;
for (int _i1153 = 0; _i1153 < _list1151.size; ++_i1153)
{
_elem1152 = iprot.readI64();
struct.records.add(_elem1152);
}
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 _iter1154 : struct.keys)
{
oprot.writeString(_iter1154);
}
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 _iter1155 : struct.records)
{
oprot.writeI64(_iter1155);
}
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<selectKeysRecords_args> {
@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 _iter1156 : struct.keys)
{
oprot.writeString(_iter1156);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter1157 : struct.records)
{
oprot.writeI64(_iter1157);
}
}
}
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 _list1158 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1158.size);
String _elem1159;
for (int _i1160 = 0; _i1160 < _list1158.size; ++_i1160)
{
_elem1159 = iprot.readString();
struct.keys.add(_elem1159);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list1161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1161.size);
long _elem1162;
for (int _i1163 = 0; _i1163 < _list1161.size; ++_i1163)
{
_elem1162 = iprot.readI64();
struct.records.add(_elem1162);
}
}
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<selectKeysRecords_result, selectKeysRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecords_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysRecords_result(selectKeysRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysRecords_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysRecords_result> {
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 _map1164 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1164.size);
long _key1165;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1166;
for (int _i1167 = 0; _i1167 < _map1164.size; ++_i1167)
{
_key1165 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1168 = iprot.readMapBegin();
_val1166 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1168.size);
String _key1169;
Set<com.cinchapi.concourse.thrift.TObject> _val1170;
for (int _i1171 = 0; _i1171 < _map1168.size; ++_i1171)
{
_key1169 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1172 = iprot.readSetBegin();
_val1170 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1172.size);
com.cinchapi.concourse.thrift.TObject _elem1173;
for (int _i1174 = 0; _i1174 < _set1172.size; ++_i1174)
{
_elem1173 = new com.cinchapi.concourse.thrift.TObject();
_elem1173.read(iprot);
_val1170.add(_elem1173);
}
iprot.readSetEnd();
}
_val1166.put(_key1169, _val1170);
}
iprot.readMapEnd();
}
struct.success.put(_key1165, _val1166);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1175 : struct.success.entrySet())
{
oprot.writeI64(_iter1175.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1175.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1176 : _iter1175.getValue().entrySet())
{
oprot.writeString(_iter1176.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1176.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1177 : _iter1176.getValue())
{
_iter1177.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<selectKeysRecords_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1178 : struct.success.entrySet())
{
oprot.writeI64(_iter1178.getKey());
{
oprot.writeI32(_iter1178.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1179 : _iter1178.getValue().entrySet())
{
oprot.writeString(_iter1179.getKey());
{
oprot.writeI32(_iter1179.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1180 : _iter1179.getValue())
{
_iter1180.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 _map1181 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1181.size);
long _key1182;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1183;
for (int _i1184 = 0; _i1184 < _map1181.size; ++_i1184)
{
_key1182 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1185 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1183 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1185.size);
String _key1186;
Set<com.cinchapi.concourse.thrift.TObject> _val1187;
for (int _i1188 = 0; _i1188 < _map1185.size; ++_i1188)
{
_key1186 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1189 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1187 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1189.size);
com.cinchapi.concourse.thrift.TObject _elem1190;
for (int _i1191 = 0; _i1191 < _set1189.size; ++_i1191)
{
_elem1190 = new com.cinchapi.concourse.thrift.TObject();
_elem1190.read(iprot);
_val1187.add(_elem1190);
}
}
_val1183.put(_key1186, _val1187);
}
}
struct.success.put(_key1182, _val1183);
}
}
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<selectKeyRecords_args, selectKeyRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecords_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public selectKeyRecords_args(selectKeyRecords_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectKeyRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeyRecords_args> {
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 _list1192 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1192.size);
long _elem1193;
for (int _i1194 = 0; _i1194 < _list1192.size; ++_i1194)
{
_elem1193 = iprot.readI64();
struct.records.add(_elem1193);
}
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 _iter1195 : struct.records)
{
oprot.writeI64(_iter1195);
}
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<selectKeyRecords_args> {
@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 _iter1196 : struct.records)
{
oprot.writeI64(_iter1196);
}
}
}
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 _list1197 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1197.size);
long _elem1198;
for (int _i1199 = 0; _i1199 < _list1197.size; ++_i1199)
{
_elem1198 = iprot.readI64();
struct.records.add(_elem1198);
}
}
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<selectKeyRecords_result, selectKeyRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecords_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyRecords_result(selectKeyRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyRecords_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyRecords_result> {
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 _map1200 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1200.size);
long _key1201;
Set<com.cinchapi.concourse.thrift.TObject> _val1202;
for (int _i1203 = 0; _i1203 < _map1200.size; ++_i1203)
{
_key1201 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1204 = iprot.readSetBegin();
_val1202 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1204.size);
com.cinchapi.concourse.thrift.TObject _elem1205;
for (int _i1206 = 0; _i1206 < _set1204.size; ++_i1206)
{
_elem1205 = new com.cinchapi.concourse.thrift.TObject();
_elem1205.read(iprot);
_val1202.add(_elem1205);
}
iprot.readSetEnd();
}
struct.success.put(_key1201, _val1202);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1207 : struct.success.entrySet())
{
oprot.writeI64(_iter1207.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1207.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1208 : _iter1207.getValue())
{
_iter1208.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<selectKeyRecords_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1209 : struct.success.entrySet())
{
oprot.writeI64(_iter1209.getKey());
{
oprot.writeI32(_iter1209.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1210 : _iter1209.getValue())
{
_iter1210.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 _map1211 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1211.size);
long _key1212;
Set<com.cinchapi.concourse.thrift.TObject> _val1213;
for (int _i1214 = 0; _i1214 < _map1211.size; ++_i1214)
{
_key1212 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1215 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1213 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1215.size);
com.cinchapi.concourse.thrift.TObject _elem1216;
for (int _i1217 = 0; _i1217 < _set1215.size; ++_i1217)
{
_elem1216 = new com.cinchapi.concourse.thrift.TObject();
_elem1216.read(iprot);
_val1213.add(_elem1216);
}
}
struct.success.put(_key1212, _val1213);
}
}
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<selectKeyRecordsTime_args, selectKeyRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecordsTime_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public selectKeyRecordsTime_args(selectKeyRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectKeyRecordsTime_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeyRecordsTime_args> {
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 _list1218 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1218.size);
long _elem1219;
for (int _i1220 = 0; _i1220 < _list1218.size; ++_i1220)
{
_elem1219 = iprot.readI64();
struct.records.add(_elem1219);
}
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 _iter1221 : struct.records)
{
oprot.writeI64(_iter1221);
}
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<selectKeyRecordsTime_args> {
@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 _iter1222 : struct.records)
{
oprot.writeI64(_iter1222);
}
}
}
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 _list1223 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1223.size);
long _elem1224;
for (int _i1225 = 0; _i1225 < _list1223.size; ++_i1225)
{
_elem1224 = iprot.readI64();
struct.records.add(_elem1224);
}
}
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<selectKeyRecordsTime_result, selectKeyRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecordsTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecordsTime_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyRecordsTime_result(selectKeyRecordsTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyRecordsTime_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyRecordsTime_result> {
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 _map1226 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1226.size);
long _key1227;
Set<com.cinchapi.concourse.thrift.TObject> _val1228;
for (int _i1229 = 0; _i1229 < _map1226.size; ++_i1229)
{
_key1227 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1230 = iprot.readSetBegin();
_val1228 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1230.size);
com.cinchapi.concourse.thrift.TObject _elem1231;
for (int _i1232 = 0; _i1232 < _set1230.size; ++_i1232)
{
_elem1231 = new com.cinchapi.concourse.thrift.TObject();
_elem1231.read(iprot);
_val1228.add(_elem1231);
}
iprot.readSetEnd();
}
struct.success.put(_key1227, _val1228);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1233 : struct.success.entrySet())
{
oprot.writeI64(_iter1233.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1233.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1234 : _iter1233.getValue())
{
_iter1234.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<selectKeyRecordsTime_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1235 : struct.success.entrySet())
{
oprot.writeI64(_iter1235.getKey());
{
oprot.writeI32(_iter1235.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1236 : _iter1235.getValue())
{
_iter1236.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 _map1237 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1237.size);
long _key1238;
Set<com.cinchapi.concourse.thrift.TObject> _val1239;
for (int _i1240 = 0; _i1240 < _map1237.size; ++_i1240)
{
_key1238 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1241 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1239 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1241.size);
com.cinchapi.concourse.thrift.TObject _elem1242;
for (int _i1243 = 0; _i1243 < _set1241.size; ++_i1243)
{
_elem1242 = new com.cinchapi.concourse.thrift.TObject();
_elem1242.read(iprot);
_val1239.add(_elem1242);
}
}
struct.success.put(_key1238, _val1239);
}
}
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<selectKeyRecordsTimestr_args, selectKeyRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecordsTimestr_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public selectKeyRecordsTimestr_args(selectKeyRecordsTimestr_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectKeyRecordsTimestr_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeyRecordsTimestr_args> {
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 _list1244 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1244.size);
long _elem1245;
for (int _i1246 = 0; _i1246 < _list1244.size; ++_i1246)
{
_elem1245 = iprot.readI64();
struct.records.add(_elem1245);
}
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 _iter1247 : struct.records)
{
oprot.writeI64(_iter1247);
}
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<selectKeyRecordsTimestr_args> {
@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 _iter1248 : struct.records)
{
oprot.writeI64(_iter1248);
}
}
}
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 _list1249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1249.size);
long _elem1250;
for (int _i1251 = 0; _i1251 < _list1249.size; ++_i1251)
{
_elem1250 = iprot.readI64();
struct.records.add(_elem1250);
}
}
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<selectKeyRecordsTimestr_result, selectKeyRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyRecordsTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyRecordsTimestr_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyRecordsTimestr_result(selectKeyRecordsTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyRecordsTimestr_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyRecordsTimestr_result> {
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 _map1252 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1252.size);
long _key1253;
Set<com.cinchapi.concourse.thrift.TObject> _val1254;
for (int _i1255 = 0; _i1255 < _map1252.size; ++_i1255)
{
_key1253 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1256 = iprot.readSetBegin();
_val1254 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1256.size);
com.cinchapi.concourse.thrift.TObject _elem1257;
for (int _i1258 = 0; _i1258 < _set1256.size; ++_i1258)
{
_elem1257 = new com.cinchapi.concourse.thrift.TObject();
_elem1257.read(iprot);
_val1254.add(_elem1257);
}
iprot.readSetEnd();
}
struct.success.put(_key1253, _val1254);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1259 : struct.success.entrySet())
{
oprot.writeI64(_iter1259.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1259.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1260 : _iter1259.getValue())
{
_iter1260.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<selectKeyRecordsTimestr_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1261 : struct.success.entrySet())
{
oprot.writeI64(_iter1261.getKey());
{
oprot.writeI32(_iter1261.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1262 : _iter1261.getValue())
{
_iter1262.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 _map1263 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1263.size);
long _key1264;
Set<com.cinchapi.concourse.thrift.TObject> _val1265;
for (int _i1266 = 0; _i1266 < _map1263.size; ++_i1266)
{
_key1264 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1267 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1265 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1267.size);
com.cinchapi.concourse.thrift.TObject _elem1268;
for (int _i1269 = 0; _i1269 < _set1267.size; ++_i1269)
{
_elem1268 = new com.cinchapi.concourse.thrift.TObject();
_elem1268.read(iprot);
_val1265.add(_elem1268);
}
}
struct.success.put(_key1264, _val1265);
}
}
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<selectKeysRecordsTime_args, selectKeysRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordsTime_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public selectKeysRecordsTime_args(selectKeysRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysRecordsTime_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectKeysRecordsTime_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<selectKeysRecordsTime_args> {
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 _list1270 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1270.size);
String _elem1271;
for (int _i1272 = 0; _i1272 < _list1270.size; ++_i1272)
{
_elem1271 = iprot.readString();
struct.keys.add(_elem1271);
}
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 _list1273 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1273.size);
long _elem1274;
for (int _i1275 = 0; _i1275 < _list1273.size; ++_i1275)
{
_elem1274 = iprot.readI64();
struct.records.add(_elem1274);
}
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 _iter1276 : struct.keys)
{
oprot.writeString(_iter1276);
}
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 _iter1277 : struct.records)
{
oprot.writeI64(_iter1277);
}
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<selectKeysRecordsTime_args> {
@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 _iter1278 : struct.keys)
{
oprot.writeString(_iter1278);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter1279 : struct.records)
{
oprot.writeI64(_iter1279);
}
}
}
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 _list1280 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1280.size);
String _elem1281;
for (int _i1282 = 0; _i1282 < _list1280.size; ++_i1282)
{
_elem1281 = iprot.readString();
struct.keys.add(_elem1281);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list1283 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1283.size);
long _elem1284;
for (int _i1285 = 0; _i1285 < _list1283.size; ++_i1285)
{
_elem1284 = iprot.readI64();
struct.records.add(_elem1284);
}
}
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<selectKeysRecordsTime_result, selectKeysRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordsTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordsTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysRecordsTime_result(selectKeysRecordsTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysRecordsTime_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysRecordsTime_result> {
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 _map1286 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1286.size);
long _key1287;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1288;
for (int _i1289 = 0; _i1289 < _map1286.size; ++_i1289)
{
_key1287 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1290 = iprot.readMapBegin();
_val1288 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1290.size);
String _key1291;
Set<com.cinchapi.concourse.thrift.TObject> _val1292;
for (int _i1293 = 0; _i1293 < _map1290.size; ++_i1293)
{
_key1291 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1294 = iprot.readSetBegin();
_val1292 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1294.size);
com.cinchapi.concourse.thrift.TObject _elem1295;
for (int _i1296 = 0; _i1296 < _set1294.size; ++_i1296)
{
_elem1295 = new com.cinchapi.concourse.thrift.TObject();
_elem1295.read(iprot);
_val1292.add(_elem1295);
}
iprot.readSetEnd();
}
_val1288.put(_key1291, _val1292);
}
iprot.readMapEnd();
}
struct.success.put(_key1287, _val1288);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1297 : struct.success.entrySet())
{
oprot.writeI64(_iter1297.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1297.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1298 : _iter1297.getValue().entrySet())
{
oprot.writeString(_iter1298.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1298.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1299 : _iter1298.getValue())
{
_iter1299.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<selectKeysRecordsTime_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1300 : struct.success.entrySet())
{
oprot.writeI64(_iter1300.getKey());
{
oprot.writeI32(_iter1300.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1301 : _iter1300.getValue().entrySet())
{
oprot.writeString(_iter1301.getKey());
{
oprot.writeI32(_iter1301.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1302 : _iter1301.getValue())
{
_iter1302.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 _map1303 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1303.size);
long _key1304;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1305;
for (int _i1306 = 0; _i1306 < _map1303.size; ++_i1306)
{
_key1304 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1307 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1305 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1307.size);
String _key1308;
Set<com.cinchapi.concourse.thrift.TObject> _val1309;
for (int _i1310 = 0; _i1310 < _map1307.size; ++_i1310)
{
_key1308 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1311 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1309 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1311.size);
com.cinchapi.concourse.thrift.TObject _elem1312;
for (int _i1313 = 0; _i1313 < _set1311.size; ++_i1313)
{
_elem1312 = new com.cinchapi.concourse.thrift.TObject();
_elem1312.read(iprot);
_val1309.add(_elem1312);
}
}
_val1305.put(_key1308, _val1309);
}
}
struct.success.put(_key1304, _val1305);
}
}
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<selectKeysRecordsTimestr_args, selectKeysRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordsTimestr_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public selectKeysRecordsTimestr_args(selectKeysRecordsTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysRecordsTimestr_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public selectKeysRecordsTimestr_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<selectKeysRecordsTimestr_args> {
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 _list1314 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1314.size);
String _elem1315;
for (int _i1316 = 0; _i1316 < _list1314.size; ++_i1316)
{
_elem1315 = iprot.readString();
struct.keys.add(_elem1315);
}
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 _list1317 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1317.size);
long _elem1318;
for (int _i1319 = 0; _i1319 < _list1317.size; ++_i1319)
{
_elem1318 = iprot.readI64();
struct.records.add(_elem1318);
}
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 _iter1320 : struct.keys)
{
oprot.writeString(_iter1320);
}
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 _iter1321 : struct.records)
{
oprot.writeI64(_iter1321);
}
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<selectKeysRecordsTimestr_args> {
@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 _iter1322 : struct.keys)
{
oprot.writeString(_iter1322);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter1323 : struct.records)
{
oprot.writeI64(_iter1323);
}
}
}
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 _list1324 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1324.size);
String _elem1325;
for (int _i1326 = 0; _i1326 < _list1324.size; ++_i1326)
{
_elem1325 = iprot.readString();
struct.keys.add(_elem1325);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list1327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1327.size);
long _elem1328;
for (int _i1329 = 0; _i1329 < _list1327.size; ++_i1329)
{
_elem1328 = iprot.readI64();
struct.records.add(_elem1328);
}
}
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<selectKeysRecordsTimestr_result, selectKeysRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysRecordsTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysRecordsTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysRecordsTimestr_result(selectKeysRecordsTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysRecordsTimestr_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysRecordsTimestr_result> {
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 _map1330 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1330.size);
long _key1331;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1332;
for (int _i1333 = 0; _i1333 < _map1330.size; ++_i1333)
{
_key1331 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1334 = iprot.readMapBegin();
_val1332 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1334.size);
String _key1335;
Set<com.cinchapi.concourse.thrift.TObject> _val1336;
for (int _i1337 = 0; _i1337 < _map1334.size; ++_i1337)
{
_key1335 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1338 = iprot.readSetBegin();
_val1336 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1338.size);
com.cinchapi.concourse.thrift.TObject _elem1339;
for (int _i1340 = 0; _i1340 < _set1338.size; ++_i1340)
{
_elem1339 = new com.cinchapi.concourse.thrift.TObject();
_elem1339.read(iprot);
_val1336.add(_elem1339);
}
iprot.readSetEnd();
}
_val1332.put(_key1335, _val1336);
}
iprot.readMapEnd();
}
struct.success.put(_key1331, _val1332);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1341 : struct.success.entrySet())
{
oprot.writeI64(_iter1341.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1341.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1342 : _iter1341.getValue().entrySet())
{
oprot.writeString(_iter1342.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1342.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1343 : _iter1342.getValue())
{
_iter1343.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<selectKeysRecordsTimestr_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1344 : struct.success.entrySet())
{
oprot.writeI64(_iter1344.getKey());
{
oprot.writeI32(_iter1344.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1345 : _iter1344.getValue().entrySet())
{
oprot.writeString(_iter1345.getKey());
{
oprot.writeI32(_iter1345.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1346 : _iter1345.getValue())
{
_iter1346.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 _map1347 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1347.size);
long _key1348;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1349;
for (int _i1350 = 0; _i1350 < _map1347.size; ++_i1350)
{
_key1348 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1351 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1349 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1351.size);
String _key1352;
Set<com.cinchapi.concourse.thrift.TObject> _val1353;
for (int _i1354 = 0; _i1354 < _map1351.size; ++_i1354)
{
_key1352 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1355 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1353 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1355.size);
com.cinchapi.concourse.thrift.TObject _elem1356;
for (int _i1357 = 0; _i1357 < _set1355.size; ++_i1357)
{
_elem1356 = new com.cinchapi.concourse.thrift.TObject();
_elem1356.read(iprot);
_val1353.add(_elem1356);
}
}
_val1349.put(_key1352, _val1353);
}
}
struct.success.put(_key1348, _val1349);
}
}
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<selectCriteria_args, selectCriteria_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectCriteria_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectCriteria_args> {
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<selectCriteria_args> {
@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<selectCriteria_result, selectCriteria_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectCriteria_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectCriteria_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectCriteria_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectCriteria_result(selectCriteria_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectCriteria_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectCriteria_result> {
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 _map1358 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1358.size);
long _key1359;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1360;
for (int _i1361 = 0; _i1361 < _map1358.size; ++_i1361)
{
_key1359 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1362 = iprot.readMapBegin();
_val1360 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1362.size);
String _key1363;
Set<com.cinchapi.concourse.thrift.TObject> _val1364;
for (int _i1365 = 0; _i1365 < _map1362.size; ++_i1365)
{
_key1363 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1366 = iprot.readSetBegin();
_val1364 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1366.size);
com.cinchapi.concourse.thrift.TObject _elem1367;
for (int _i1368 = 0; _i1368 < _set1366.size; ++_i1368)
{
_elem1367 = new com.cinchapi.concourse.thrift.TObject();
_elem1367.read(iprot);
_val1364.add(_elem1367);
}
iprot.readSetEnd();
}
_val1360.put(_key1363, _val1364);
}
iprot.readMapEnd();
}
struct.success.put(_key1359, _val1360);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1369 : struct.success.entrySet())
{
oprot.writeI64(_iter1369.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1369.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1370 : _iter1369.getValue().entrySet())
{
oprot.writeString(_iter1370.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1370.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1371 : _iter1370.getValue())
{
_iter1371.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<selectCriteria_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1372 : struct.success.entrySet())
{
oprot.writeI64(_iter1372.getKey());
{
oprot.writeI32(_iter1372.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1373 : _iter1372.getValue().entrySet())
{
oprot.writeString(_iter1373.getKey());
{
oprot.writeI32(_iter1373.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1374 : _iter1373.getValue())
{
_iter1374.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 _map1375 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1375.size);
long _key1376;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1377;
for (int _i1378 = 0; _i1378 < _map1375.size; ++_i1378)
{
_key1376 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1379 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1377 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1379.size);
String _key1380;
Set<com.cinchapi.concourse.thrift.TObject> _val1381;
for (int _i1382 = 0; _i1382 < _map1379.size; ++_i1382)
{
_key1380 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1383 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1381 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1383.size);
com.cinchapi.concourse.thrift.TObject _elem1384;
for (int _i1385 = 0; _i1385 < _set1383.size; ++_i1385)
{
_elem1384 = new com.cinchapi.concourse.thrift.TObject();
_elem1384.read(iprot);
_val1381.add(_elem1384);
}
}
_val1377.put(_key1380, _val1381);
}
}
struct.success.put(_key1376, _val1377);
}
}
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<selectCcl_args, selectCcl_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectCcl_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectCcl_args> {
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<selectCcl_args> {
@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<selectCcl_result, selectCcl_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectCcl_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectCcl_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectCcl_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectCcl_result(selectCcl_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectCcl_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectCcl_result> {
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 _map1386 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1386.size);
long _key1387;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1388;
for (int _i1389 = 0; _i1389 < _map1386.size; ++_i1389)
{
_key1387 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1390 = iprot.readMapBegin();
_val1388 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1390.size);
String _key1391;
Set<com.cinchapi.concourse.thrift.TObject> _val1392;
for (int _i1393 = 0; _i1393 < _map1390.size; ++_i1393)
{
_key1391 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1394 = iprot.readSetBegin();
_val1392 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1394.size);
com.cinchapi.concourse.thrift.TObject _elem1395;
for (int _i1396 = 0; _i1396 < _set1394.size; ++_i1396)
{
_elem1395 = new com.cinchapi.concourse.thrift.TObject();
_elem1395.read(iprot);
_val1392.add(_elem1395);
}
iprot.readSetEnd();
}
_val1388.put(_key1391, _val1392);
}
iprot.readMapEnd();
}
struct.success.put(_key1387, _val1388);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1397 : struct.success.entrySet())
{
oprot.writeI64(_iter1397.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1397.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1398 : _iter1397.getValue().entrySet())
{
oprot.writeString(_iter1398.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1398.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1399 : _iter1398.getValue())
{
_iter1399.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<selectCcl_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1400 : struct.success.entrySet())
{
oprot.writeI64(_iter1400.getKey());
{
oprot.writeI32(_iter1400.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1401 : _iter1400.getValue().entrySet())
{
oprot.writeString(_iter1401.getKey());
{
oprot.writeI32(_iter1401.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1402 : _iter1401.getValue())
{
_iter1402.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 _map1403 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1403.size);
long _key1404;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1405;
for (int _i1406 = 0; _i1406 < _map1403.size; ++_i1406)
{
_key1404 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1407 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1405 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1407.size);
String _key1408;
Set<com.cinchapi.concourse.thrift.TObject> _val1409;
for (int _i1410 = 0; _i1410 < _map1407.size; ++_i1410)
{
_key1408 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1411 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1409 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1411.size);
com.cinchapi.concourse.thrift.TObject _elem1412;
for (int _i1413 = 0; _i1413 < _set1411.size; ++_i1413)
{
_elem1412 = new com.cinchapi.concourse.thrift.TObject();
_elem1412.read(iprot);
_val1409.add(_elem1412);
}
}
_val1405.put(_key1408, _val1409);
}
}
struct.success.put(_key1404, _val1405);
}
}
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<selectCriteriaTime_args, selectCriteriaTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectCriteriaTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectCriteriaTime_args> {
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<selectCriteriaTime_args> {
@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<selectCriteriaTime_result, selectCriteriaTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectCriteriaTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectCriteriaTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectCriteriaTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectCriteriaTime_result(selectCriteriaTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectCriteriaTime_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectCriteriaTime_result> {
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 _map1414 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1414.size);
long _key1415;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1416;
for (int _i1417 = 0; _i1417 < _map1414.size; ++_i1417)
{
_key1415 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1418 = iprot.readMapBegin();
_val1416 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1418.size);
String _key1419;
Set<com.cinchapi.concourse.thrift.TObject> _val1420;
for (int _i1421 = 0; _i1421 < _map1418.size; ++_i1421)
{
_key1419 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1422 = iprot.readSetBegin();
_val1420 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1422.size);
com.cinchapi.concourse.thrift.TObject _elem1423;
for (int _i1424 = 0; _i1424 < _set1422.size; ++_i1424)
{
_elem1423 = new com.cinchapi.concourse.thrift.TObject();
_elem1423.read(iprot);
_val1420.add(_elem1423);
}
iprot.readSetEnd();
}
_val1416.put(_key1419, _val1420);
}
iprot.readMapEnd();
}
struct.success.put(_key1415, _val1416);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1425 : struct.success.entrySet())
{
oprot.writeI64(_iter1425.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1425.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1426 : _iter1425.getValue().entrySet())
{
oprot.writeString(_iter1426.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1426.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1427 : _iter1426.getValue())
{
_iter1427.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<selectCriteriaTime_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1428 : struct.success.entrySet())
{
oprot.writeI64(_iter1428.getKey());
{
oprot.writeI32(_iter1428.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1429 : _iter1428.getValue().entrySet())
{
oprot.writeString(_iter1429.getKey());
{
oprot.writeI32(_iter1429.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1430 : _iter1429.getValue())
{
_iter1430.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 _map1431 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1431.size);
long _key1432;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1433;
for (int _i1434 = 0; _i1434 < _map1431.size; ++_i1434)
{
_key1432 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1435 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1433 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1435.size);
String _key1436;
Set<com.cinchapi.concourse.thrift.TObject> _val1437;
for (int _i1438 = 0; _i1438 < _map1435.size; ++_i1438)
{
_key1436 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1439 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1437 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1439.size);
com.cinchapi.concourse.thrift.TObject _elem1440;
for (int _i1441 = 0; _i1441 < _set1439.size; ++_i1441)
{
_elem1440 = new com.cinchapi.concourse.thrift.TObject();
_elem1440.read(iprot);
_val1437.add(_elem1440);
}
}
_val1433.put(_key1436, _val1437);
}
}
struct.success.put(_key1432, _val1433);
}
}
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<selectCriteriaTimestr_args, selectCriteriaTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectCriteriaTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectCriteriaTimestr_args> {
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<selectCriteriaTimestr_args> {
@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<selectCriteriaTimestr_result, selectCriteriaTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectCriteriaTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectCriteriaTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectCriteriaTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectCriteriaTimestr_result(selectCriteriaTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectCriteriaTimestr_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectCriteriaTimestr_result> {
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 _map1442 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1442.size);
long _key1443;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1444;
for (int _i1445 = 0; _i1445 < _map1442.size; ++_i1445)
{
_key1443 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1446 = iprot.readMapBegin();
_val1444 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1446.size);
String _key1447;
Set<com.cinchapi.concourse.thrift.TObject> _val1448;
for (int _i1449 = 0; _i1449 < _map1446.size; ++_i1449)
{
_key1447 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1450 = iprot.readSetBegin();
_val1448 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1450.size);
com.cinchapi.concourse.thrift.TObject _elem1451;
for (int _i1452 = 0; _i1452 < _set1450.size; ++_i1452)
{
_elem1451 = new com.cinchapi.concourse.thrift.TObject();
_elem1451.read(iprot);
_val1448.add(_elem1451);
}
iprot.readSetEnd();
}
_val1444.put(_key1447, _val1448);
}
iprot.readMapEnd();
}
struct.success.put(_key1443, _val1444);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1453 : struct.success.entrySet())
{
oprot.writeI64(_iter1453.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1453.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1454 : _iter1453.getValue().entrySet())
{
oprot.writeString(_iter1454.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1454.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1455 : _iter1454.getValue())
{
_iter1455.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<selectCriteriaTimestr_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1456 : struct.success.entrySet())
{
oprot.writeI64(_iter1456.getKey());
{
oprot.writeI32(_iter1456.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1457 : _iter1456.getValue().entrySet())
{
oprot.writeString(_iter1457.getKey());
{
oprot.writeI32(_iter1457.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1458 : _iter1457.getValue())
{
_iter1458.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 _map1459 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1459.size);
long _key1460;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1461;
for (int _i1462 = 0; _i1462 < _map1459.size; ++_i1462)
{
_key1460 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1463 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1461 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1463.size);
String _key1464;
Set<com.cinchapi.concourse.thrift.TObject> _val1465;
for (int _i1466 = 0; _i1466 < _map1463.size; ++_i1466)
{
_key1464 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1467 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1465 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1467.size);
com.cinchapi.concourse.thrift.TObject _elem1468;
for (int _i1469 = 0; _i1469 < _set1467.size; ++_i1469)
{
_elem1468 = new com.cinchapi.concourse.thrift.TObject();
_elem1468.read(iprot);
_val1465.add(_elem1468);
}
}
_val1461.put(_key1464, _val1465);
}
}
struct.success.put(_key1460, _val1461);
}
}
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<selectCclTime_args, selectCclTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectCclTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectCclTime_args> {
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<selectCclTime_args> {
@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<selectCclTime_result, selectCclTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectCclTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectCclTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectCclTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectCclTime_result(selectCclTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectCclTime_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectCclTime_result> {
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 _map1470 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1470.size);
long _key1471;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1472;
for (int _i1473 = 0; _i1473 < _map1470.size; ++_i1473)
{
_key1471 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1474 = iprot.readMapBegin();
_val1472 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1474.size);
String _key1475;
Set<com.cinchapi.concourse.thrift.TObject> _val1476;
for (int _i1477 = 0; _i1477 < _map1474.size; ++_i1477)
{
_key1475 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1478 = iprot.readSetBegin();
_val1476 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1478.size);
com.cinchapi.concourse.thrift.TObject _elem1479;
for (int _i1480 = 0; _i1480 < _set1478.size; ++_i1480)
{
_elem1479 = new com.cinchapi.concourse.thrift.TObject();
_elem1479.read(iprot);
_val1476.add(_elem1479);
}
iprot.readSetEnd();
}
_val1472.put(_key1475, _val1476);
}
iprot.readMapEnd();
}
struct.success.put(_key1471, _val1472);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1481 : struct.success.entrySet())
{
oprot.writeI64(_iter1481.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1481.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1482 : _iter1481.getValue().entrySet())
{
oprot.writeString(_iter1482.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1482.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1483 : _iter1482.getValue())
{
_iter1483.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<selectCclTime_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1484 : struct.success.entrySet())
{
oprot.writeI64(_iter1484.getKey());
{
oprot.writeI32(_iter1484.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1485 : _iter1484.getValue().entrySet())
{
oprot.writeString(_iter1485.getKey());
{
oprot.writeI32(_iter1485.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1486 : _iter1485.getValue())
{
_iter1486.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 _map1487 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1487.size);
long _key1488;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1489;
for (int _i1490 = 0; _i1490 < _map1487.size; ++_i1490)
{
_key1488 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1491 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1489 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1491.size);
String _key1492;
Set<com.cinchapi.concourse.thrift.TObject> _val1493;
for (int _i1494 = 0; _i1494 < _map1491.size; ++_i1494)
{
_key1492 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1495 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1493 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1495.size);
com.cinchapi.concourse.thrift.TObject _elem1496;
for (int _i1497 = 0; _i1497 < _set1495.size; ++_i1497)
{
_elem1496 = new com.cinchapi.concourse.thrift.TObject();
_elem1496.read(iprot);
_val1493.add(_elem1496);
}
}
_val1489.put(_key1492, _val1493);
}
}
struct.success.put(_key1488, _val1489);
}
}
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<selectCclTimestr_args, selectCclTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectCclTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectCclTimestr_args> {
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<selectCclTimestr_args> {
@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<selectCclTimestr_result, selectCclTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectCclTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectCclTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectCclTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectCclTimestr_result(selectCclTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectCclTimestr_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectCclTimestr_result> {
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 _map1498 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1498.size);
long _key1499;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1500;
for (int _i1501 = 0; _i1501 < _map1498.size; ++_i1501)
{
_key1499 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1502 = iprot.readMapBegin();
_val1500 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1502.size);
String _key1503;
Set<com.cinchapi.concourse.thrift.TObject> _val1504;
for (int _i1505 = 0; _i1505 < _map1502.size; ++_i1505)
{
_key1503 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1506 = iprot.readSetBegin();
_val1504 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1506.size);
com.cinchapi.concourse.thrift.TObject _elem1507;
for (int _i1508 = 0; _i1508 < _set1506.size; ++_i1508)
{
_elem1507 = new com.cinchapi.concourse.thrift.TObject();
_elem1507.read(iprot);
_val1504.add(_elem1507);
}
iprot.readSetEnd();
}
_val1500.put(_key1503, _val1504);
}
iprot.readMapEnd();
}
struct.success.put(_key1499, _val1500);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1509 : struct.success.entrySet())
{
oprot.writeI64(_iter1509.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1509.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1510 : _iter1509.getValue().entrySet())
{
oprot.writeString(_iter1510.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1510.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1511 : _iter1510.getValue())
{
_iter1511.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<selectCclTimestr_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1512 : struct.success.entrySet())
{
oprot.writeI64(_iter1512.getKey());
{
oprot.writeI32(_iter1512.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1513 : _iter1512.getValue().entrySet())
{
oprot.writeString(_iter1513.getKey());
{
oprot.writeI32(_iter1513.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1514 : _iter1513.getValue())
{
_iter1514.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 _map1515 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1515.size);
long _key1516;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1517;
for (int _i1518 = 0; _i1518 < _map1515.size; ++_i1518)
{
_key1516 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1519 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1517 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1519.size);
String _key1520;
Set<com.cinchapi.concourse.thrift.TObject> _val1521;
for (int _i1522 = 0; _i1522 < _map1519.size; ++_i1522)
{
_key1520 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1523 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1521 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1523.size);
com.cinchapi.concourse.thrift.TObject _elem1524;
for (int _i1525 = 0; _i1525 < _set1523.size; ++_i1525)
{
_elem1524 = new com.cinchapi.concourse.thrift.TObject();
_elem1524.read(iprot);
_val1521.add(_elem1524);
}
}
_val1517.put(_key1520, _val1521);
}
}
struct.success.put(_key1516, _val1517);
}
}
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<selectKeyCriteria_args, selectKeyCriteria_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCriteria_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyCriteria_args> {
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<selectKeyCriteria_args> {
@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<selectKeyCriteria_result, selectKeyCriteria_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCriteria_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyCriteria_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyCriteria_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyCriteria_result(selectKeyCriteria_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyCriteria_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyCriteria_result> {
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 _map1526 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1526.size);
long _key1527;
Set<com.cinchapi.concourse.thrift.TObject> _val1528;
for (int _i1529 = 0; _i1529 < _map1526.size; ++_i1529)
{
_key1527 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1530 = iprot.readSetBegin();
_val1528 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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();
}
struct.success.put(_key1527, _val1528);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1533 : struct.success.entrySet())
{
oprot.writeI64(_iter1533.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1533.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1534 : _iter1533.getValue())
{
_iter1534.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<selectKeyCriteria_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1535 : struct.success.entrySet())
{
oprot.writeI64(_iter1535.getKey());
{
oprot.writeI32(_iter1535.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1536 : _iter1535.getValue())
{
_iter1536.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 _map1537 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1537.size);
long _key1538;
Set<com.cinchapi.concourse.thrift.TObject> _val1539;
for (int _i1540 = 0; _i1540 < _map1537.size; ++_i1540)
{
_key1538 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1541 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1539 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1541.size);
com.cinchapi.concourse.thrift.TObject _elem1542;
for (int _i1543 = 0; _i1543 < _set1541.size; ++_i1543)
{
_elem1542 = new com.cinchapi.concourse.thrift.TObject();
_elem1542.read(iprot);
_val1539.add(_elem1542);
}
}
struct.success.put(_key1538, _val1539);
}
}
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<selectKeyCcl_args, selectKeyCcl_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCcl_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyCcl_args> {
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<selectKeyCcl_args> {
@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<selectKeyCcl_result, selectKeyCcl_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCcl_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyCcl_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyCcl_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyCcl_result(selectKeyCcl_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyCcl_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyCcl_result> {
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 _map1544 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1544.size);
long _key1545;
Set<com.cinchapi.concourse.thrift.TObject> _val1546;
for (int _i1547 = 0; _i1547 < _map1544.size; ++_i1547)
{
_key1545 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1548 = iprot.readSetBegin();
_val1546 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1548.size);
com.cinchapi.concourse.thrift.TObject _elem1549;
for (int _i1550 = 0; _i1550 < _set1548.size; ++_i1550)
{
_elem1549 = new com.cinchapi.concourse.thrift.TObject();
_elem1549.read(iprot);
_val1546.add(_elem1549);
}
iprot.readSetEnd();
}
struct.success.put(_key1545, _val1546);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1551 : struct.success.entrySet())
{
oprot.writeI64(_iter1551.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1551.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1552 : _iter1551.getValue())
{
_iter1552.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<selectKeyCcl_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1553 : struct.success.entrySet())
{
oprot.writeI64(_iter1553.getKey());
{
oprot.writeI32(_iter1553.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1554 : _iter1553.getValue())
{
_iter1554.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 _map1555 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1555.size);
long _key1556;
Set<com.cinchapi.concourse.thrift.TObject> _val1557;
for (int _i1558 = 0; _i1558 < _map1555.size; ++_i1558)
{
_key1556 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1559 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1557 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1559.size);
com.cinchapi.concourse.thrift.TObject _elem1560;
for (int _i1561 = 0; _i1561 < _set1559.size; ++_i1561)
{
_elem1560 = new com.cinchapi.concourse.thrift.TObject();
_elem1560.read(iprot);
_val1557.add(_elem1560);
}
}
struct.success.put(_key1556, _val1557);
}
}
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<selectKeyCriteriaTime_args, selectKeyCriteriaTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCriteriaTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyCriteriaTime_args> {
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<selectKeyCriteriaTime_args> {
@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<selectKeyCriteriaTime_result, selectKeyCriteriaTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCriteriaTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyCriteriaTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyCriteriaTime_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyCriteriaTime_result(selectKeyCriteriaTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyCriteriaTime_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyCriteriaTime_result> {
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 _map1562 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1562.size);
long _key1563;
Set<com.cinchapi.concourse.thrift.TObject> _val1564;
for (int _i1565 = 0; _i1565 < _map1562.size; ++_i1565)
{
_key1563 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1566 = iprot.readSetBegin();
_val1564 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1566.size);
com.cinchapi.concourse.thrift.TObject _elem1567;
for (int _i1568 = 0; _i1568 < _set1566.size; ++_i1568)
{
_elem1567 = new com.cinchapi.concourse.thrift.TObject();
_elem1567.read(iprot);
_val1564.add(_elem1567);
}
iprot.readSetEnd();
}
struct.success.put(_key1563, _val1564);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1569 : struct.success.entrySet())
{
oprot.writeI64(_iter1569.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1569.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1570 : _iter1569.getValue())
{
_iter1570.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<selectKeyCriteriaTime_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1571 : struct.success.entrySet())
{
oprot.writeI64(_iter1571.getKey());
{
oprot.writeI32(_iter1571.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1572 : _iter1571.getValue())
{
_iter1572.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 _map1573 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1573.size);
long _key1574;
Set<com.cinchapi.concourse.thrift.TObject> _val1575;
for (int _i1576 = 0; _i1576 < _map1573.size; ++_i1576)
{
_key1574 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1577 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1575 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1577.size);
com.cinchapi.concourse.thrift.TObject _elem1578;
for (int _i1579 = 0; _i1579 < _set1577.size; ++_i1579)
{
_elem1578 = new com.cinchapi.concourse.thrift.TObject();
_elem1578.read(iprot);
_val1575.add(_elem1578);
}
}
struct.success.put(_key1574, _val1575);
}
}
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<selectKeyCriteriaTimestr_args, selectKeyCriteriaTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCriteriaTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyCriteriaTimestr_args> {
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<selectKeyCriteriaTimestr_args> {
@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<selectKeyCriteriaTimestr_result, selectKeyCriteriaTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCriteriaTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyCriteriaTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyCriteriaTimestr_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyCriteriaTimestr_result(selectKeyCriteriaTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyCriteriaTimestr_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyCriteriaTimestr_result> {
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 _map1580 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1580.size);
long _key1581;
Set<com.cinchapi.concourse.thrift.TObject> _val1582;
for (int _i1583 = 0; _i1583 < _map1580.size; ++_i1583)
{
_key1581 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1584 = iprot.readSetBegin();
_val1582 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1584.size);
com.cinchapi.concourse.thrift.TObject _elem1585;
for (int _i1586 = 0; _i1586 < _set1584.size; ++_i1586)
{
_elem1585 = new com.cinchapi.concourse.thrift.TObject();
_elem1585.read(iprot);
_val1582.add(_elem1585);
}
iprot.readSetEnd();
}
struct.success.put(_key1581, _val1582);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1587 : struct.success.entrySet())
{
oprot.writeI64(_iter1587.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1587.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1588 : _iter1587.getValue())
{
_iter1588.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<selectKeyCriteriaTimestr_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1589 : struct.success.entrySet())
{
oprot.writeI64(_iter1589.getKey());
{
oprot.writeI32(_iter1589.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1590 : _iter1589.getValue())
{
_iter1590.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 _map1591 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1591.size);
long _key1592;
Set<com.cinchapi.concourse.thrift.TObject> _val1593;
for (int _i1594 = 0; _i1594 < _map1591.size; ++_i1594)
{
_key1592 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1595 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1593 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1595.size);
com.cinchapi.concourse.thrift.TObject _elem1596;
for (int _i1597 = 0; _i1597 < _set1595.size; ++_i1597)
{
_elem1596 = new com.cinchapi.concourse.thrift.TObject();
_elem1596.read(iprot);
_val1593.add(_elem1596);
}
}
struct.success.put(_key1592, _val1593);
}
}
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<selectKeyCclTime_args, selectKeyCclTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCclTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyCclTime_args> {
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<selectKeyCclTime_args> {
@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<selectKeyCclTime_result, selectKeyCclTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCclTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyCclTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyCclTime_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyCclTime_result(selectKeyCclTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyCclTime_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyCclTime_result> {
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 _map1598 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1598.size);
long _key1599;
Set<com.cinchapi.concourse.thrift.TObject> _val1600;
for (int _i1601 = 0; _i1601 < _map1598.size; ++_i1601)
{
_key1599 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1602 = iprot.readSetBegin();
_val1600 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1602.size);
com.cinchapi.concourse.thrift.TObject _elem1603;
for (int _i1604 = 0; _i1604 < _set1602.size; ++_i1604)
{
_elem1603 = new com.cinchapi.concourse.thrift.TObject();
_elem1603.read(iprot);
_val1600.add(_elem1603);
}
iprot.readSetEnd();
}
struct.success.put(_key1599, _val1600);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1605 : struct.success.entrySet())
{
oprot.writeI64(_iter1605.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1605.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1606 : _iter1605.getValue())
{
_iter1606.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<selectKeyCclTime_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1607 : struct.success.entrySet())
{
oprot.writeI64(_iter1607.getKey());
{
oprot.writeI32(_iter1607.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1608 : _iter1607.getValue())
{
_iter1608.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 _map1609 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1609.size);
long _key1610;
Set<com.cinchapi.concourse.thrift.TObject> _val1611;
for (int _i1612 = 0; _i1612 < _map1609.size; ++_i1612)
{
_key1610 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1613 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1611 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1613.size);
com.cinchapi.concourse.thrift.TObject _elem1614;
for (int _i1615 = 0; _i1615 < _set1613.size; ++_i1615)
{
_elem1614 = new com.cinchapi.concourse.thrift.TObject();
_elem1614.read(iprot);
_val1611.add(_elem1614);
}
}
struct.success.put(_key1610, _val1611);
}
}
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<selectKeyCclTimestr_args, selectKeyCclTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCclTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<selectKeyCclTimestr_args> {
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<selectKeyCclTimestr_args> {
@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<selectKeyCclTimestr_result, selectKeyCclTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeyCclTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeyCclTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeyCclTimestr_resultTupleSchemeFactory());
}
public Map<Long,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Set<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 <i>other</i>.
*/
public selectKeyCclTimestr_result(selectKeyCclTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Set<com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Set<com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Set<com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public selectKeyCclTimestr_result setSuccess(Map<Long,Set<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 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<Long,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeyCclTimestr_result> {
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 _map1616 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1616.size);
long _key1617;
Set<com.cinchapi.concourse.thrift.TObject> _val1618;
for (int _i1619 = 0; _i1619 < _map1616.size; ++_i1619)
{
_key1617 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1620 = iprot.readSetBegin();
_val1618 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1620.size);
com.cinchapi.concourse.thrift.TObject _elem1621;
for (int _i1622 = 0; _i1622 < _set1620.size; ++_i1622)
{
_elem1621 = new com.cinchapi.concourse.thrift.TObject();
_elem1621.read(iprot);
_val1618.add(_elem1621);
}
iprot.readSetEnd();
}
struct.success.put(_key1617, _val1618);
}
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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1623 : struct.success.entrySet())
{
oprot.writeI64(_iter1623.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1623.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1624 : _iter1623.getValue())
{
_iter1624.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<selectKeyCclTimestr_result> {
@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<Long, Set<com.cinchapi.concourse.thrift.TObject>> _iter1625 : struct.success.entrySet())
{
oprot.writeI64(_iter1625.getKey());
{
oprot.writeI32(_iter1625.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1626 : _iter1625.getValue())
{
_iter1626.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 _map1627 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.SET, iprot.readI32());
struct.success = new LinkedHashMap<Long,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1627.size);
long _key1628;
Set<com.cinchapi.concourse.thrift.TObject> _val1629;
for (int _i1630 = 0; _i1630 < _map1627.size; ++_i1630)
{
_key1628 = iprot.readI64();
{
org.apache.thrift.protocol.TSet _set1631 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1629 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1631.size);
com.cinchapi.concourse.thrift.TObject _elem1632;
for (int _i1633 = 0; _i1633 < _set1631.size; ++_i1633)
{
_elem1632 = new com.cinchapi.concourse.thrift.TObject();
_elem1632.read(iprot);
_val1629.add(_elem1632);
}
}
struct.success.put(_key1628, _val1629);
}
}
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<selectKeysCriteria_args, selectKeysCriteria_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCriteria_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCriteria_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCriteria_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysCriteria_args(selectKeysCriteria_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysCriteria_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysCriteria_args> {
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 _list1634 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1634.size);
String _elem1635;
for (int _i1636 = 0; _i1636 < _list1634.size; ++_i1636)
{
_elem1635 = iprot.readString();
struct.keys.add(_elem1635);
}
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 _iter1637 : struct.keys)
{
oprot.writeString(_iter1637);
}
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<selectKeysCriteria_args> {
@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 _iter1638 : struct.keys)
{
oprot.writeString(_iter1638);
}
}
}
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 _list1639 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1639.size);
String _elem1640;
for (int _i1641 = 0; _i1641 < _list1639.size; ++_i1641)
{
_elem1640 = iprot.readString();
struct.keys.add(_elem1640);
}
}
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<selectKeysCriteria_result, selectKeysCriteria_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCriteria_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCriteria_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCriteria_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysCriteria_result(selectKeysCriteria_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysCriteria_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysCriteria_result> {
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 _map1642 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1642.size);
long _key1643;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1644;
for (int _i1645 = 0; _i1645 < _map1642.size; ++_i1645)
{
_key1643 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1646 = iprot.readMapBegin();
_val1644 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1646.size);
String _key1647;
Set<com.cinchapi.concourse.thrift.TObject> _val1648;
for (int _i1649 = 0; _i1649 < _map1646.size; ++_i1649)
{
_key1647 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1650 = iprot.readSetBegin();
_val1648 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1650.size);
com.cinchapi.concourse.thrift.TObject _elem1651;
for (int _i1652 = 0; _i1652 < _set1650.size; ++_i1652)
{
_elem1651 = new com.cinchapi.concourse.thrift.TObject();
_elem1651.read(iprot);
_val1648.add(_elem1651);
}
iprot.readSetEnd();
}
_val1644.put(_key1647, _val1648);
}
iprot.readMapEnd();
}
struct.success.put(_key1643, _val1644);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1653 : struct.success.entrySet())
{
oprot.writeI64(_iter1653.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1653.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1654 : _iter1653.getValue().entrySet())
{
oprot.writeString(_iter1654.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1654.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1655 : _iter1654.getValue())
{
_iter1655.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<selectKeysCriteria_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1656 : struct.success.entrySet())
{
oprot.writeI64(_iter1656.getKey());
{
oprot.writeI32(_iter1656.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1657 : _iter1656.getValue().entrySet())
{
oprot.writeString(_iter1657.getKey());
{
oprot.writeI32(_iter1657.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1658 : _iter1657.getValue())
{
_iter1658.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 _map1659 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1659.size);
long _key1660;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1661;
for (int _i1662 = 0; _i1662 < _map1659.size; ++_i1662)
{
_key1660 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1663 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1661 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1663.size);
String _key1664;
Set<com.cinchapi.concourse.thrift.TObject> _val1665;
for (int _i1666 = 0; _i1666 < _map1663.size; ++_i1666)
{
_key1664 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1667 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1665 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1667.size);
com.cinchapi.concourse.thrift.TObject _elem1668;
for (int _i1669 = 0; _i1669 < _set1667.size; ++_i1669)
{
_elem1668 = new com.cinchapi.concourse.thrift.TObject();
_elem1668.read(iprot);
_val1665.add(_elem1668);
}
}
_val1661.put(_key1664, _val1665);
}
}
struct.success.put(_key1660, _val1661);
}
}
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<selectKeysCcl_args, selectKeysCcl_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCcl_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCcl_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCcl_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysCcl_args(selectKeysCcl_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysCcl_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysCcl_args> {
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 _list1670 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1670.size);
String _elem1671;
for (int _i1672 = 0; _i1672 < _list1670.size; ++_i1672)
{
_elem1671 = iprot.readString();
struct.keys.add(_elem1671);
}
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 _iter1673 : struct.keys)
{
oprot.writeString(_iter1673);
}
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<selectKeysCcl_args> {
@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 _iter1674 : struct.keys)
{
oprot.writeString(_iter1674);
}
}
}
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 _list1675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1675.size);
String _elem1676;
for (int _i1677 = 0; _i1677 < _list1675.size; ++_i1677)
{
_elem1676 = iprot.readString();
struct.keys.add(_elem1676);
}
}
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<selectKeysCcl_result, selectKeysCcl_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCcl_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCcl_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCcl_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysCcl_result(selectKeysCcl_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysCcl_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysCcl_result> {
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 _map1678 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1678.size);
long _key1679;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1680;
for (int _i1681 = 0; _i1681 < _map1678.size; ++_i1681)
{
_key1679 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1682 = iprot.readMapBegin();
_val1680 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1682.size);
String _key1683;
Set<com.cinchapi.concourse.thrift.TObject> _val1684;
for (int _i1685 = 0; _i1685 < _map1682.size; ++_i1685)
{
_key1683 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1686 = iprot.readSetBegin();
_val1684 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1686.size);
com.cinchapi.concourse.thrift.TObject _elem1687;
for (int _i1688 = 0; _i1688 < _set1686.size; ++_i1688)
{
_elem1687 = new com.cinchapi.concourse.thrift.TObject();
_elem1687.read(iprot);
_val1684.add(_elem1687);
}
iprot.readSetEnd();
}
_val1680.put(_key1683, _val1684);
}
iprot.readMapEnd();
}
struct.success.put(_key1679, _val1680);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1689 : struct.success.entrySet())
{
oprot.writeI64(_iter1689.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1689.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1690 : _iter1689.getValue().entrySet())
{
oprot.writeString(_iter1690.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1690.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1691 : _iter1690.getValue())
{
_iter1691.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<selectKeysCcl_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1692 : struct.success.entrySet())
{
oprot.writeI64(_iter1692.getKey());
{
oprot.writeI32(_iter1692.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1693 : _iter1692.getValue().entrySet())
{
oprot.writeString(_iter1693.getKey());
{
oprot.writeI32(_iter1693.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1694 : _iter1693.getValue())
{
_iter1694.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 _map1695 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1695.size);
long _key1696;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1697;
for (int _i1698 = 0; _i1698 < _map1695.size; ++_i1698)
{
_key1696 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1699 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1697 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1699.size);
String _key1700;
Set<com.cinchapi.concourse.thrift.TObject> _val1701;
for (int _i1702 = 0; _i1702 < _map1699.size; ++_i1702)
{
_key1700 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1703 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1701 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1703.size);
com.cinchapi.concourse.thrift.TObject _elem1704;
for (int _i1705 = 0; _i1705 < _set1703.size; ++_i1705)
{
_elem1704 = new com.cinchapi.concourse.thrift.TObject();
_elem1704.read(iprot);
_val1701.add(_elem1704);
}
}
_val1697.put(_key1700, _val1701);
}
}
struct.success.put(_key1696, _val1697);
}
}
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<selectKeysCriteriaTime_args, selectKeysCriteriaTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCriteriaTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCriteriaTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCriteriaTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysCriteriaTime_args(selectKeysCriteriaTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysCriteriaTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysCriteriaTime_args> {
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 _list1706 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1706.size);
String _elem1707;
for (int _i1708 = 0; _i1708 < _list1706.size; ++_i1708)
{
_elem1707 = iprot.readString();
struct.keys.add(_elem1707);
}
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 _iter1709 : struct.keys)
{
oprot.writeString(_iter1709);
}
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<selectKeysCriteriaTime_args> {
@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 _iter1710 : struct.keys)
{
oprot.writeString(_iter1710);
}
}
}
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 _list1711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1711.size);
String _elem1712;
for (int _i1713 = 0; _i1713 < _list1711.size; ++_i1713)
{
_elem1712 = iprot.readString();
struct.keys.add(_elem1712);
}
}
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<selectKeysCriteriaTime_result, selectKeysCriteriaTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCriteriaTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCriteriaTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCriteriaTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysCriteriaTime_result(selectKeysCriteriaTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysCriteriaTime_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysCriteriaTime_result> {
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 _map1714 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1714.size);
long _key1715;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1716;
for (int _i1717 = 0; _i1717 < _map1714.size; ++_i1717)
{
_key1715 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1718 = iprot.readMapBegin();
_val1716 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1718.size);
String _key1719;
Set<com.cinchapi.concourse.thrift.TObject> _val1720;
for (int _i1721 = 0; _i1721 < _map1718.size; ++_i1721)
{
_key1719 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1722 = iprot.readSetBegin();
_val1720 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1722.size);
com.cinchapi.concourse.thrift.TObject _elem1723;
for (int _i1724 = 0; _i1724 < _set1722.size; ++_i1724)
{
_elem1723 = new com.cinchapi.concourse.thrift.TObject();
_elem1723.read(iprot);
_val1720.add(_elem1723);
}
iprot.readSetEnd();
}
_val1716.put(_key1719, _val1720);
}
iprot.readMapEnd();
}
struct.success.put(_key1715, _val1716);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1725 : struct.success.entrySet())
{
oprot.writeI64(_iter1725.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1725.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1726 : _iter1725.getValue().entrySet())
{
oprot.writeString(_iter1726.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1726.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1727 : _iter1726.getValue())
{
_iter1727.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<selectKeysCriteriaTime_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1728 : struct.success.entrySet())
{
oprot.writeI64(_iter1728.getKey());
{
oprot.writeI32(_iter1728.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1729 : _iter1728.getValue().entrySet())
{
oprot.writeString(_iter1729.getKey());
{
oprot.writeI32(_iter1729.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1730 : _iter1729.getValue())
{
_iter1730.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 _map1731 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1731.size);
long _key1732;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1733;
for (int _i1734 = 0; _i1734 < _map1731.size; ++_i1734)
{
_key1732 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1735 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1733 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1735.size);
String _key1736;
Set<com.cinchapi.concourse.thrift.TObject> _val1737;
for (int _i1738 = 0; _i1738 < _map1735.size; ++_i1738)
{
_key1736 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1739 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1737 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1739.size);
com.cinchapi.concourse.thrift.TObject _elem1740;
for (int _i1741 = 0; _i1741 < _set1739.size; ++_i1741)
{
_elem1740 = new com.cinchapi.concourse.thrift.TObject();
_elem1740.read(iprot);
_val1737.add(_elem1740);
}
}
_val1733.put(_key1736, _val1737);
}
}
struct.success.put(_key1732, _val1733);
}
}
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<selectKeysCriteriaTimestr_args, selectKeysCriteriaTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCriteriaTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCriteriaTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCriteriaTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysCriteriaTimestr_args(selectKeysCriteriaTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysCriteriaTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysCriteriaTimestr_args> {
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 _list1742 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1742.size);
String _elem1743;
for (int _i1744 = 0; _i1744 < _list1742.size; ++_i1744)
{
_elem1743 = iprot.readString();
struct.keys.add(_elem1743);
}
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 _iter1745 : struct.keys)
{
oprot.writeString(_iter1745);
}
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<selectKeysCriteriaTimestr_args> {
@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 _iter1746 : struct.keys)
{
oprot.writeString(_iter1746);
}
}
}
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 _list1747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1747.size);
String _elem1748;
for (int _i1749 = 0; _i1749 < _list1747.size; ++_i1749)
{
_elem1748 = iprot.readString();
struct.keys.add(_elem1748);
}
}
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<selectKeysCriteriaTimestr_result, selectKeysCriteriaTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCriteriaTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCriteriaTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCriteriaTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysCriteriaTimestr_result(selectKeysCriteriaTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysCriteriaTimestr_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysCriteriaTimestr_result> {
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 _map1750 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1750.size);
long _key1751;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1752;
for (int _i1753 = 0; _i1753 < _map1750.size; ++_i1753)
{
_key1751 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1754 = iprot.readMapBegin();
_val1752 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1754.size);
String _key1755;
Set<com.cinchapi.concourse.thrift.TObject> _val1756;
for (int _i1757 = 0; _i1757 < _map1754.size; ++_i1757)
{
_key1755 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1758 = iprot.readSetBegin();
_val1756 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1758.size);
com.cinchapi.concourse.thrift.TObject _elem1759;
for (int _i1760 = 0; _i1760 < _set1758.size; ++_i1760)
{
_elem1759 = new com.cinchapi.concourse.thrift.TObject();
_elem1759.read(iprot);
_val1756.add(_elem1759);
}
iprot.readSetEnd();
}
_val1752.put(_key1755, _val1756);
}
iprot.readMapEnd();
}
struct.success.put(_key1751, _val1752);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1761 : struct.success.entrySet())
{
oprot.writeI64(_iter1761.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1761.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1762 : _iter1761.getValue().entrySet())
{
oprot.writeString(_iter1762.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1762.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1763 : _iter1762.getValue())
{
_iter1763.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<selectKeysCriteriaTimestr_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1764 : struct.success.entrySet())
{
oprot.writeI64(_iter1764.getKey());
{
oprot.writeI32(_iter1764.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1765 : _iter1764.getValue().entrySet())
{
oprot.writeString(_iter1765.getKey());
{
oprot.writeI32(_iter1765.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1766 : _iter1765.getValue())
{
_iter1766.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 _map1767 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1767.size);
long _key1768;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1769;
for (int _i1770 = 0; _i1770 < _map1767.size; ++_i1770)
{
_key1768 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1771 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1769 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1771.size);
String _key1772;
Set<com.cinchapi.concourse.thrift.TObject> _val1773;
for (int _i1774 = 0; _i1774 < _map1771.size; ++_i1774)
{
_key1772 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1775 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1773 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1775.size);
com.cinchapi.concourse.thrift.TObject _elem1776;
for (int _i1777 = 0; _i1777 < _set1775.size; ++_i1777)
{
_elem1776 = new com.cinchapi.concourse.thrift.TObject();
_elem1776.read(iprot);
_val1773.add(_elem1776);
}
}
_val1769.put(_key1772, _val1773);
}
}
struct.success.put(_key1768, _val1769);
}
}
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<selectKeysCclTime_args, selectKeysCclTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCclTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCclTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCclTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysCclTime_args(selectKeysCclTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysCclTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysCclTime_args> {
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 _list1778 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1778.size);
String _elem1779;
for (int _i1780 = 0; _i1780 < _list1778.size; ++_i1780)
{
_elem1779 = iprot.readString();
struct.keys.add(_elem1779);
}
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 _iter1781 : struct.keys)
{
oprot.writeString(_iter1781);
}
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<selectKeysCclTime_args> {
@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 _iter1782 : struct.keys)
{
oprot.writeString(_iter1782);
}
}
}
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 _list1783 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1783.size);
String _elem1784;
for (int _i1785 = 0; _i1785 < _list1783.size; ++_i1785)
{
_elem1784 = iprot.readString();
struct.keys.add(_elem1784);
}
}
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<selectKeysCclTime_result, selectKeysCclTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCclTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCclTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCclTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysCclTime_result(selectKeysCclTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysCclTime_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysCclTime_result> {
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 _map1786 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1786.size);
long _key1787;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1788;
for (int _i1789 = 0; _i1789 < _map1786.size; ++_i1789)
{
_key1787 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1790 = iprot.readMapBegin();
_val1788 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1790.size);
String _key1791;
Set<com.cinchapi.concourse.thrift.TObject> _val1792;
for (int _i1793 = 0; _i1793 < _map1790.size; ++_i1793)
{
_key1791 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1794 = iprot.readSetBegin();
_val1792 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1794.size);
com.cinchapi.concourse.thrift.TObject _elem1795;
for (int _i1796 = 0; _i1796 < _set1794.size; ++_i1796)
{
_elem1795 = new com.cinchapi.concourse.thrift.TObject();
_elem1795.read(iprot);
_val1792.add(_elem1795);
}
iprot.readSetEnd();
}
_val1788.put(_key1791, _val1792);
}
iprot.readMapEnd();
}
struct.success.put(_key1787, _val1788);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1797 : struct.success.entrySet())
{
oprot.writeI64(_iter1797.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1797.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1798 : _iter1797.getValue().entrySet())
{
oprot.writeString(_iter1798.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1798.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1799 : _iter1798.getValue())
{
_iter1799.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<selectKeysCclTime_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1800 : struct.success.entrySet())
{
oprot.writeI64(_iter1800.getKey());
{
oprot.writeI32(_iter1800.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1801 : _iter1800.getValue().entrySet())
{
oprot.writeString(_iter1801.getKey());
{
oprot.writeI32(_iter1801.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1802 : _iter1801.getValue())
{
_iter1802.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 _map1803 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1803.size);
long _key1804;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1805;
for (int _i1806 = 0; _i1806 < _map1803.size; ++_i1806)
{
_key1804 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1807 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1805 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1807.size);
String _key1808;
Set<com.cinchapi.concourse.thrift.TObject> _val1809;
for (int _i1810 = 0; _i1810 < _map1807.size; ++_i1810)
{
_key1808 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1811 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1809 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1811.size);
com.cinchapi.concourse.thrift.TObject _elem1812;
for (int _i1813 = 0; _i1813 < _set1811.size; ++_i1813)
{
_elem1812 = new com.cinchapi.concourse.thrift.TObject();
_elem1812.read(iprot);
_val1809.add(_elem1812);
}
}
_val1805.put(_key1808, _val1809);
}
}
struct.success.put(_key1804, _val1805);
}
}
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<selectKeysCclTimestr_args, selectKeysCclTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCclTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCclTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCclTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public selectKeysCclTimestr_args(selectKeysCclTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public selectKeysCclTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<selectKeysCclTimestr_args> {
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 _list1814 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1814.size);
String _elem1815;
for (int _i1816 = 0; _i1816 < _list1814.size; ++_i1816)
{
_elem1815 = iprot.readString();
struct.keys.add(_elem1815);
}
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 _iter1817 : struct.keys)
{
oprot.writeString(_iter1817);
}
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<selectKeysCclTimestr_args> {
@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 _iter1818 : struct.keys)
{
oprot.writeString(_iter1818);
}
}
}
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 _list1819 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1819.size);
String _elem1820;
for (int _i1821 = 0; _i1821 < _list1819.size; ++_i1821)
{
_elem1820 = iprot.readString();
struct.keys.add(_elem1820);
}
}
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<selectKeysCclTimestr_result, selectKeysCclTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<selectKeysCclTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new selectKeysCclTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new selectKeysCclTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,Set<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 <i>other</i>.
*/
public selectKeysCclTimestr_result(selectKeysCclTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> __this__success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(other.success.size());
for (Map.Entry<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> __this__success_copy_value = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(other_element_value.size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> other_element_value_element : other_element_value.entrySet()) {
String other_element_value_element_key = other_element_value_element.getKey();
Set<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;
Set<com.cinchapi.concourse.thrift.TObject> __this__success_copy_value_copy_value = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(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<String,Set<com.cinchapi.concourse.thrift.TObject>> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> getSuccess() {
return this.success;
}
public selectKeysCclTimestr_result setSuccess(Map<Long,Map<String,Set<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 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<Long,Map<String,Set<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<selectKeysCclTimestr_result> {
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 _map1822 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1822.size);
long _key1823;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1824;
for (int _i1825 = 0; _i1825 < _map1822.size; ++_i1825)
{
_key1823 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1826 = iprot.readMapBegin();
_val1824 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1826.size);
String _key1827;
Set<com.cinchapi.concourse.thrift.TObject> _val1828;
for (int _i1829 = 0; _i1829 < _map1826.size; ++_i1829)
{
_key1827 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1830 = iprot.readSetBegin();
_val1828 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1830.size);
com.cinchapi.concourse.thrift.TObject _elem1831;
for (int _i1832 = 0; _i1832 < _set1830.size; ++_i1832)
{
_elem1831 = new com.cinchapi.concourse.thrift.TObject();
_elem1831.read(iprot);
_val1828.add(_elem1831);
}
iprot.readSetEnd();
}
_val1824.put(_key1827, _val1828);
}
iprot.readMapEnd();
}
struct.success.put(_key1823, _val1824);
}
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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1833 : struct.success.entrySet())
{
oprot.writeI64(_iter1833.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, _iter1833.getValue().size()));
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1834 : _iter1833.getValue().entrySet())
{
oprot.writeString(_iter1834.getKey());
{
oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, _iter1834.getValue().size()));
for (com.cinchapi.concourse.thrift.TObject _iter1835 : _iter1834.getValue())
{
_iter1835.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<selectKeysCclTimestr_result> {
@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<Long, Map<String,Set<com.cinchapi.concourse.thrift.TObject>>> _iter1836 : struct.success.entrySet())
{
oprot.writeI64(_iter1836.getKey());
{
oprot.writeI32(_iter1836.getValue().size());
for (Map.Entry<String, Set<com.cinchapi.concourse.thrift.TObject>> _iter1837 : _iter1836.getValue().entrySet())
{
oprot.writeString(_iter1837.getKey());
{
oprot.writeI32(_iter1837.getValue().size());
for (com.cinchapi.concourse.thrift.TObject _iter1838 : _iter1837.getValue())
{
_iter1838.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 _map1839 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,Set<com.cinchapi.concourse.thrift.TObject>>>(2*_map1839.size);
long _key1840;
Map<String,Set<com.cinchapi.concourse.thrift.TObject>> _val1841;
for (int _i1842 = 0; _i1842 < _map1839.size; ++_i1842)
{
_key1840 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1843 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.SET, iprot.readI32());
_val1841 = new LinkedHashMap<String,Set<com.cinchapi.concourse.thrift.TObject>>(2*_map1843.size);
String _key1844;
Set<com.cinchapi.concourse.thrift.TObject> _val1845;
for (int _i1846 = 0; _i1846 < _map1843.size; ++_i1846)
{
_key1844 = iprot.readString();
{
org.apache.thrift.protocol.TSet _set1847 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1845 = new LinkedHashSet<com.cinchapi.concourse.thrift.TObject>(2*_set1847.size);
com.cinchapi.concourse.thrift.TObject _elem1848;
for (int _i1849 = 0; _i1849 < _set1847.size; ++_i1849)
{
_elem1848 = new com.cinchapi.concourse.thrift.TObject();
_elem1848.read(iprot);
_val1845.add(_elem1848);
}
}
_val1841.put(_key1844, _val1845);
}
}
struct.success.put(_key1840, _val1841);
}
}
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<getKeyRecord_args, getKeyRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyRecord_args> {
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<getKeyRecord_args> {
@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<getKeyRecord_result, getKeyRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyRecord_result> {
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<getKeyRecord_result> {
@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<getKeyRecordTime_args, getKeyRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyRecordTime_args> {
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<getKeyRecordTime_args> {
@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<getKeyRecordTime_result, getKeyRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyRecordTime_result> {
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<getKeyRecordTime_result> {
@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<getKeyRecordTimestr_args, getKeyRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyRecordTimestr_args> {
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<getKeyRecordTimestr_args> {
@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<getKeyRecordTimestr_result, getKeyRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyRecordTimestr_result> {
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<getKeyRecordTimestr_result> {
@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<getKeysRecord_args, getKeysRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecord_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecord_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysRecord_args(getKeysRecord_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysRecord_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysRecord_args> {
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 _list1850 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1850.size);
String _elem1851;
for (int _i1852 = 0; _i1852 < _list1850.size; ++_i1852)
{
_elem1851 = iprot.readString();
struct.keys.add(_elem1851);
}
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 _iter1853 : struct.keys)
{
oprot.writeString(_iter1853);
}
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<getKeysRecord_args> {
@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 _iter1854 : struct.keys)
{
oprot.writeString(_iter1854);
}
}
}
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 _list1855 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1855.size);
String _elem1856;
for (int _i1857 = 0; _i1857 < _list1855.size; ++_i1857)
{
_elem1856 = iprot.readString();
struct.keys.add(_elem1856);
}
}
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<getKeysRecord_result, getKeysRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecord_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecord_resultTupleSchemeFactory());
}
public Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,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 <i>other</i>.
*/
public getKeysRecord_result(getKeysRecord_result other) {
if (other.isSetSuccess()) {
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<String,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeysRecord_result setSuccess(Map<String,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 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<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysRecord_result> {
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 _map1858 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map1858.size);
String _key1859;
com.cinchapi.concourse.thrift.TObject _val1860;
for (int _i1861 = 0; _i1861 < _map1858.size; ++_i1861)
{
_key1859 = iprot.readString();
_val1860 = new com.cinchapi.concourse.thrift.TObject();
_val1860.read(iprot);
struct.success.put(_key1859, _val1860);
}
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<String, com.cinchapi.concourse.thrift.TObject> _iter1862 : struct.success.entrySet())
{
oprot.writeString(_iter1862.getKey());
_iter1862.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<getKeysRecord_result> {
@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<String, com.cinchapi.concourse.thrift.TObject> _iter1863 : struct.success.entrySet())
{
oprot.writeString(_iter1863.getKey());
_iter1863.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 _map1864 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map1864.size);
String _key1865;
com.cinchapi.concourse.thrift.TObject _val1866;
for (int _i1867 = 0; _i1867 < _map1864.size; ++_i1867)
{
_key1865 = iprot.readString();
_val1866 = new com.cinchapi.concourse.thrift.TObject();
_val1866.read(iprot);
struct.success.put(_key1865, _val1866);
}
}
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<getKeysRecordTime_args, getKeysRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysRecordTime_args(getKeysRecordTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysRecordTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysRecordTime_args> {
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 _list1868 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1868.size);
String _elem1869;
for (int _i1870 = 0; _i1870 < _list1868.size; ++_i1870)
{
_elem1869 = iprot.readString();
struct.keys.add(_elem1869);
}
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 _iter1871 : struct.keys)
{
oprot.writeString(_iter1871);
}
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<getKeysRecordTime_args> {
@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 _iter1872 : struct.keys)
{
oprot.writeString(_iter1872);
}
}
}
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 _list1873 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1873.size);
String _elem1874;
for (int _i1875 = 0; _i1875 < _list1873.size; ++_i1875)
{
_elem1874 = iprot.readString();
struct.keys.add(_elem1874);
}
}
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<getKeysRecordTime_result, getKeysRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordTime_resultTupleSchemeFactory());
}
public Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,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 <i>other</i>.
*/
public getKeysRecordTime_result(getKeysRecordTime_result other) {
if (other.isSetSuccess()) {
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<String,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeysRecordTime_result setSuccess(Map<String,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 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<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysRecordTime_result> {
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 _map1876 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map1876.size);
String _key1877;
com.cinchapi.concourse.thrift.TObject _val1878;
for (int _i1879 = 0; _i1879 < _map1876.size; ++_i1879)
{
_key1877 = iprot.readString();
_val1878 = new com.cinchapi.concourse.thrift.TObject();
_val1878.read(iprot);
struct.success.put(_key1877, _val1878);
}
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<String, com.cinchapi.concourse.thrift.TObject> _iter1880 : struct.success.entrySet())
{
oprot.writeString(_iter1880.getKey());
_iter1880.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<getKeysRecordTime_result> {
@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<String, com.cinchapi.concourse.thrift.TObject> _iter1881 : struct.success.entrySet())
{
oprot.writeString(_iter1881.getKey());
_iter1881.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 _map1882 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(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);
}
}
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<getKeysRecordTimestr_args, getKeysRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysRecordTimestr_args(getKeysRecordTimestr_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysRecordTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysRecordTimestr_args> {
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 _list1886 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1886.size);
String _elem1887;
for (int _i1888 = 0; _i1888 < _list1886.size; ++_i1888)
{
_elem1887 = iprot.readString();
struct.keys.add(_elem1887);
}
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 _iter1889 : struct.keys)
{
oprot.writeString(_iter1889);
}
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<getKeysRecordTimestr_args> {
@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 _iter1890 : struct.keys)
{
oprot.writeString(_iter1890);
}
}
}
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 _list1891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1891.size);
String _elem1892;
for (int _i1893 = 0; _i1893 < _list1891.size; ++_i1893)
{
_elem1892 = iprot.readString();
struct.keys.add(_elem1892);
}
}
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<getKeysRecordTimestr_result, getKeysRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordTimestr_resultTupleSchemeFactory());
}
public Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<String,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 <i>other</i>.
*/
public getKeysRecordTimestr_result(getKeysRecordTimestr_result other) {
if (other.isSetSuccess()) {
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<String,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeysRecordTimestr_result setSuccess(Map<String,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 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<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysRecordTimestr_result> {
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 _map1894 = iprot.readMapBegin();
struct.success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map1894.size);
String _key1895;
com.cinchapi.concourse.thrift.TObject _val1896;
for (int _i1897 = 0; _i1897 < _map1894.size; ++_i1897)
{
_key1895 = iprot.readString();
_val1896 = new com.cinchapi.concourse.thrift.TObject();
_val1896.read(iprot);
struct.success.put(_key1895, _val1896);
}
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<String, com.cinchapi.concourse.thrift.TObject> _iter1898 : struct.success.entrySet())
{
oprot.writeString(_iter1898.getKey());
_iter1898.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<getKeysRecordTimestr_result> {
@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<String, com.cinchapi.concourse.thrift.TObject> _iter1899 : struct.success.entrySet())
{
oprot.writeString(_iter1899.getKey());
_iter1899.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 _map1900 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(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);
}
}
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<getKeysRecords_args, getKeysRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecords_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public getKeysRecords_args(getKeysRecords_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysRecords_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public getKeysRecords_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<getKeysRecords_args> {
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 _list1904 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1904.size);
String _elem1905;
for (int _i1906 = 0; _i1906 < _list1904.size; ++_i1906)
{
_elem1905 = iprot.readString();
struct.keys.add(_elem1905);
}
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 _list1907 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1907.size);
long _elem1908;
for (int _i1909 = 0; _i1909 < _list1907.size; ++_i1909)
{
_elem1908 = iprot.readI64();
struct.records.add(_elem1908);
}
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 _iter1910 : struct.keys)
{
oprot.writeString(_iter1910);
}
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 _iter1911 : struct.records)
{
oprot.writeI64(_iter1911);
}
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<getKeysRecords_args> {
@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 _iter1912 : struct.keys)
{
oprot.writeString(_iter1912);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter1913 : struct.records)
{
oprot.writeI64(_iter1913);
}
}
}
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 _list1914 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list1914.size);
String _elem1915;
for (int _i1916 = 0; _i1916 < _list1914.size; ++_i1916)
{
_elem1915 = iprot.readString();
struct.keys.add(_elem1915);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list1917 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1917.size);
long _elem1918;
for (int _i1919 = 0; _i1919 < _list1917.size; ++_i1919)
{
_elem1918 = iprot.readI64();
struct.records.add(_elem1918);
}
}
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<getKeysRecords_result, getKeysRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecords_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysRecords_result(getKeysRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysRecords_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysRecords_result> {
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 _map1920 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map1920.size);
long _key1921;
Map<String,com.cinchapi.concourse.thrift.TObject> _val1922;
for (int _i1923 = 0; _i1923 < _map1920.size; ++_i1923)
{
_key1921 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1924 = iprot.readMapBegin();
_val1922 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(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);
_val1922.put(_key1925, _val1926);
}
iprot.readMapEnd();
}
struct.success.put(_key1921, _val1922);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter1928 : struct.success.entrySet())
{
oprot.writeI64(_iter1928.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter1928.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter1929 : _iter1928.getValue().entrySet())
{
oprot.writeString(_iter1929.getKey());
_iter1929.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<getKeysRecords_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter1930 : struct.success.entrySet())
{
oprot.writeI64(_iter1930.getKey());
{
oprot.writeI32(_iter1930.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter1931 : _iter1930.getValue().entrySet())
{
oprot.writeString(_iter1931.getKey());
_iter1931.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 _map1932 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map1932.size);
long _key1933;
Map<String,com.cinchapi.concourse.thrift.TObject> _val1934;
for (int _i1935 = 0; _i1935 < _map1932.size; ++_i1935)
{
_key1933 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map1936 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val1934 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map1936.size);
String _key1937;
com.cinchapi.concourse.thrift.TObject _val1938;
for (int _i1939 = 0; _i1939 < _map1936.size; ++_i1939)
{
_key1937 = iprot.readString();
_val1938 = new com.cinchapi.concourse.thrift.TObject();
_val1938.read(iprot);
_val1934.put(_key1937, _val1938);
}
}
struct.success.put(_key1933, _val1934);
}
}
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<getKeyRecords_args, getKeyRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyRecords_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public getKeyRecords_args(getKeyRecords_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public getKeyRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeyRecords_args> {
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 _list1940 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1940.size);
long _elem1941;
for (int _i1942 = 0; _i1942 < _list1940.size; ++_i1942)
{
_elem1941 = iprot.readI64();
struct.records.add(_elem1941);
}
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 _iter1943 : struct.records)
{
oprot.writeI64(_iter1943);
}
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<getKeyRecords_args> {
@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 _iter1944 : struct.records)
{
oprot.writeI64(_iter1944);
}
}
}
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 _list1945 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1945.size);
long _elem1946;
for (int _i1947 = 0; _i1947 < _list1945.size; ++_i1947)
{
_elem1946 = iprot.readI64();
struct.records.add(_elem1946);
}
}
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<getKeyRecords_result, getKeyRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyRecords_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyRecords_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyRecords_result(getKeyRecords_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyRecords_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyRecords_result> {
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 _map1948 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map1948.size);
long _key1949;
com.cinchapi.concourse.thrift.TObject _val1950;
for (int _i1951 = 0; _i1951 < _map1948.size; ++_i1951)
{
_key1949 = iprot.readI64();
_val1950 = new com.cinchapi.concourse.thrift.TObject();
_val1950.read(iprot);
struct.success.put(_key1949, _val1950);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter1952 : struct.success.entrySet())
{
oprot.writeI64(_iter1952.getKey());
_iter1952.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<getKeyRecords_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter1953 : struct.success.entrySet())
{
oprot.writeI64(_iter1953.getKey());
_iter1953.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 _map1954 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map1954.size);
long _key1955;
com.cinchapi.concourse.thrift.TObject _val1956;
for (int _i1957 = 0; _i1957 < _map1954.size; ++_i1957)
{
_key1955 = iprot.readI64();
_val1956 = new com.cinchapi.concourse.thrift.TObject();
_val1956.read(iprot);
struct.success.put(_key1955, _val1956);
}
}
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<getKeyRecordsTime_args, getKeyRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyRecordsTime_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public getKeyRecordsTime_args(getKeyRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public getKeyRecordsTime_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeyRecordsTime_args> {
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 _list1958 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1958.size);
long _elem1959;
for (int _i1960 = 0; _i1960 < _list1958.size; ++_i1960)
{
_elem1959 = iprot.readI64();
struct.records.add(_elem1959);
}
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 _iter1961 : struct.records)
{
oprot.writeI64(_iter1961);
}
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<getKeyRecordsTime_args> {
@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 _iter1962 : struct.records)
{
oprot.writeI64(_iter1962);
}
}
}
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 _list1963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1963.size);
long _elem1964;
for (int _i1965 = 0; _i1965 < _list1963.size; ++_i1965)
{
_elem1964 = iprot.readI64();
struct.records.add(_elem1964);
}
}
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<getKeyRecordsTime_result, getKeyRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyRecordsTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyRecordsTime_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyRecordsTime_result(getKeyRecordsTime_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyRecordsTime_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyRecordsTime_result> {
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 _map1966 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map1966.size);
long _key1967;
com.cinchapi.concourse.thrift.TObject _val1968;
for (int _i1969 = 0; _i1969 < _map1966.size; ++_i1969)
{
_key1967 = iprot.readI64();
_val1968 = new com.cinchapi.concourse.thrift.TObject();
_val1968.read(iprot);
struct.success.put(_key1967, _val1968);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter1970 : struct.success.entrySet())
{
oprot.writeI64(_iter1970.getKey());
_iter1970.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<getKeyRecordsTime_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter1971 : struct.success.entrySet())
{
oprot.writeI64(_iter1971.getKey());
_iter1971.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 _map1972 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(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);
}
}
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<getKeyRecordsTimestr_args, getKeyRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyRecordsTimestr_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public getKeyRecordsTimestr_args(getKeyRecordsTimestr_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public getKeyRecordsTimestr_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeyRecordsTimestr_args> {
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 _list1976 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1976.size);
long _elem1977;
for (int _i1978 = 0; _i1978 < _list1976.size; ++_i1978)
{
_elem1977 = iprot.readI64();
struct.records.add(_elem1977);
}
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 _iter1979 : struct.records)
{
oprot.writeI64(_iter1979);
}
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<getKeyRecordsTimestr_args> {
@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 _iter1980 : struct.records)
{
oprot.writeI64(_iter1980);
}
}
}
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 _list1981 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list1981.size);
long _elem1982;
for (int _i1983 = 0; _i1983 < _list1981.size; ++_i1983)
{
_elem1982 = iprot.readI64();
struct.records.add(_elem1982);
}
}
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<getKeyRecordsTimestr_result, getKeyRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyRecordsTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyRecordsTimestr_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyRecordsTimestr_result(getKeyRecordsTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyRecordsTimestr_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyRecordsTimestr_result> {
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 _map1984 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map1984.size);
long _key1985;
com.cinchapi.concourse.thrift.TObject _val1986;
for (int _i1987 = 0; _i1987 < _map1984.size; ++_i1987)
{
_key1985 = iprot.readI64();
_val1986 = new com.cinchapi.concourse.thrift.TObject();
_val1986.read(iprot);
struct.success.put(_key1985, _val1986);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter1988 : struct.success.entrySet())
{
oprot.writeI64(_iter1988.getKey());
_iter1988.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<getKeyRecordsTimestr_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter1989 : struct.success.entrySet())
{
oprot.writeI64(_iter1989.getKey());
_iter1989.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 _map1990 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(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);
}
}
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<getKeysRecordsTime_args, getKeysRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordsTime_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public getKeysRecordsTime_args(getKeysRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysRecordsTime_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public getKeysRecordsTime_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<getKeysRecordsTime_args> {
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 _list1994 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list1994.size);
String _elem1995;
for (int _i1996 = 0; _i1996 < _list1994.size; ++_i1996)
{
_elem1995 = iprot.readString();
struct.keys.add(_elem1995);
}
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 _list1997 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list1997.size);
long _elem1998;
for (int _i1999 = 0; _i1999 < _list1997.size; ++_i1999)
{
_elem1998 = iprot.readI64();
struct.records.add(_elem1998);
}
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 _iter2000 : struct.keys)
{
oprot.writeString(_iter2000);
}
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 _iter2001 : struct.records)
{
oprot.writeI64(_iter2001);
}
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<getKeysRecordsTime_args> {
@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 _iter2002 : struct.keys)
{
oprot.writeString(_iter2002);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter2003 : struct.records)
{
oprot.writeI64(_iter2003);
}
}
}
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 _list2004 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2004.size);
String _elem2005;
for (int _i2006 = 0; _i2006 < _list2004.size; ++_i2006)
{
_elem2005 = iprot.readString();
struct.keys.add(_elem2005);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list2007 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2007.size);
long _elem2008;
for (int _i2009 = 0; _i2009 < _list2007.size; ++_i2009)
{
_elem2008 = iprot.readI64();
struct.records.add(_elem2008);
}
}
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<getKeysRecordsTime_result, getKeysRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordsTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordsTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysRecordsTime_result(getKeysRecordsTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysRecordsTime_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysRecordsTime_result> {
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 _map2010 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2010.size);
long _key2011;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2012;
for (int _i2013 = 0; _i2013 < _map2010.size; ++_i2013)
{
_key2011 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2014 = iprot.readMapBegin();
_val2012 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2014.size);
String _key2015;
com.cinchapi.concourse.thrift.TObject _val2016;
for (int _i2017 = 0; _i2017 < _map2014.size; ++_i2017)
{
_key2015 = iprot.readString();
_val2016 = new com.cinchapi.concourse.thrift.TObject();
_val2016.read(iprot);
_val2012.put(_key2015, _val2016);
}
iprot.readMapEnd();
}
struct.success.put(_key2011, _val2012);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2018 : struct.success.entrySet())
{
oprot.writeI64(_iter2018.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2018.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2019 : _iter2018.getValue().entrySet())
{
oprot.writeString(_iter2019.getKey());
_iter2019.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<getKeysRecordsTime_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2020 : struct.success.entrySet())
{
oprot.writeI64(_iter2020.getKey());
{
oprot.writeI32(_iter2020.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2021 : _iter2020.getValue().entrySet())
{
oprot.writeString(_iter2021.getKey());
_iter2021.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 _map2022 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2022.size);
long _key2023;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2024;
for (int _i2025 = 0; _i2025 < _map2022.size; ++_i2025)
{
_key2023 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2026 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2024 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2026.size);
String _key2027;
com.cinchapi.concourse.thrift.TObject _val2028;
for (int _i2029 = 0; _i2029 < _map2026.size; ++_i2029)
{
_key2027 = iprot.readString();
_val2028 = new com.cinchapi.concourse.thrift.TObject();
_val2028.read(iprot);
_val2024.put(_key2027, _val2028);
}
}
struct.success.put(_key2023, _val2024);
}
}
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<getKeysRecordsTimestr_args, getKeysRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordsTimestr_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public getKeysRecordsTimestr_args(getKeysRecordsTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysRecordsTimestr_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public getKeysRecordsTimestr_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<getKeysRecordsTimestr_args> {
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 _list2030 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2030.size);
String _elem2031;
for (int _i2032 = 0; _i2032 < _list2030.size; ++_i2032)
{
_elem2031 = iprot.readString();
struct.keys.add(_elem2031);
}
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 _list2033 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2033.size);
long _elem2034;
for (int _i2035 = 0; _i2035 < _list2033.size; ++_i2035)
{
_elem2034 = iprot.readI64();
struct.records.add(_elem2034);
}
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 _iter2036 : struct.keys)
{
oprot.writeString(_iter2036);
}
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 _iter2037 : struct.records)
{
oprot.writeI64(_iter2037);
}
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<getKeysRecordsTimestr_args> {
@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 _iter2038 : struct.keys)
{
oprot.writeString(_iter2038);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter2039 : struct.records)
{
oprot.writeI64(_iter2039);
}
}
}
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 _list2040 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2040.size);
String _elem2041;
for (int _i2042 = 0; _i2042 < _list2040.size; ++_i2042)
{
_elem2041 = iprot.readString();
struct.keys.add(_elem2041);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list2043 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2043.size);
long _elem2044;
for (int _i2045 = 0; _i2045 < _list2043.size; ++_i2045)
{
_elem2044 = iprot.readI64();
struct.records.add(_elem2044);
}
}
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<getKeysRecordsTimestr_result, getKeysRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysRecordsTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysRecordsTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysRecordsTimestr_result(getKeysRecordsTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysRecordsTimestr_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysRecordsTimestr_result> {
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 _map2046 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2046.size);
long _key2047;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2048;
for (int _i2049 = 0; _i2049 < _map2046.size; ++_i2049)
{
_key2047 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2050 = iprot.readMapBegin();
_val2048 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(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);
}
iprot.readMapEnd();
}
struct.success.put(_key2047, _val2048);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2054 : struct.success.entrySet())
{
oprot.writeI64(_iter2054.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2054.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2055 : _iter2054.getValue().entrySet())
{
oprot.writeString(_iter2055.getKey());
_iter2055.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<getKeysRecordsTimestr_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2056 : struct.success.entrySet())
{
oprot.writeI64(_iter2056.getKey());
{
oprot.writeI32(_iter2056.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2057 : _iter2056.getValue().entrySet())
{
oprot.writeString(_iter2057.getKey());
_iter2057.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 _map2058 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2058.size);
long _key2059;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2060;
for (int _i2061 = 0; _i2061 < _map2058.size; ++_i2061)
{
_key2059 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2062 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2060 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2062.size);
String _key2063;
com.cinchapi.concourse.thrift.TObject _val2064;
for (int _i2065 = 0; _i2065 < _map2062.size; ++_i2065)
{
_key2063 = iprot.readString();
_val2064 = new com.cinchapi.concourse.thrift.TObject();
_val2064.read(iprot);
_val2060.put(_key2063, _val2064);
}
}
struct.success.put(_key2059, _val2060);
}
}
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<getKeyCriteria_args, getKeyCriteria_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCriteria_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyCriteria_args> {
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<getKeyCriteria_args> {
@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<getKeyCriteria_result, getKeyCriteria_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCriteria_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyCriteria_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyCriteria_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyCriteria_result(getKeyCriteria_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyCriteria_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyCriteria_result> {
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 _map2066 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2066.size);
long _key2067;
com.cinchapi.concourse.thrift.TObject _val2068;
for (int _i2069 = 0; _i2069 < _map2066.size; ++_i2069)
{
_key2067 = iprot.readI64();
_val2068 = new com.cinchapi.concourse.thrift.TObject();
_val2068.read(iprot);
struct.success.put(_key2067, _val2068);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter2070 : struct.success.entrySet())
{
oprot.writeI64(_iter2070.getKey());
_iter2070.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<getKeyCriteria_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter2071 : struct.success.entrySet())
{
oprot.writeI64(_iter2071.getKey());
_iter2071.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 _map2072 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2072.size);
long _key2073;
com.cinchapi.concourse.thrift.TObject _val2074;
for (int _i2075 = 0; _i2075 < _map2072.size; ++_i2075)
{
_key2073 = iprot.readI64();
_val2074 = new com.cinchapi.concourse.thrift.TObject();
_val2074.read(iprot);
struct.success.put(_key2073, _val2074);
}
}
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<getCriteria_args, getCriteria_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCriteria_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getCriteria_args> {
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<getCriteria_args> {
@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<getCriteria_result, getCriteria_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCriteria_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCriteria_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCriteria_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getCriteria_result(getCriteria_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getCriteria_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getCriteria_result> {
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 _map2076 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2076.size);
long _key2077;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2078;
for (int _i2079 = 0; _i2079 < _map2076.size; ++_i2079)
{
_key2077 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2080 = iprot.readMapBegin();
_val2078 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2080.size);
String _key2081;
com.cinchapi.concourse.thrift.TObject _val2082;
for (int _i2083 = 0; _i2083 < _map2080.size; ++_i2083)
{
_key2081 = iprot.readString();
_val2082 = new com.cinchapi.concourse.thrift.TObject();
_val2082.read(iprot);
_val2078.put(_key2081, _val2082);
}
iprot.readMapEnd();
}
struct.success.put(_key2077, _val2078);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2084 : struct.success.entrySet())
{
oprot.writeI64(_iter2084.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2084.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2085 : _iter2084.getValue().entrySet())
{
oprot.writeString(_iter2085.getKey());
_iter2085.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<getCriteria_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2086 : struct.success.entrySet())
{
oprot.writeI64(_iter2086.getKey());
{
oprot.writeI32(_iter2086.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2087 : _iter2086.getValue().entrySet())
{
oprot.writeString(_iter2087.getKey());
_iter2087.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 _map2088 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2088.size);
long _key2089;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2090;
for (int _i2091 = 0; _i2091 < _map2088.size; ++_i2091)
{
_key2089 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2092 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2090 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2092.size);
String _key2093;
com.cinchapi.concourse.thrift.TObject _val2094;
for (int _i2095 = 0; _i2095 < _map2092.size; ++_i2095)
{
_key2093 = iprot.readString();
_val2094 = new com.cinchapi.concourse.thrift.TObject();
_val2094.read(iprot);
_val2090.put(_key2093, _val2094);
}
}
struct.success.put(_key2089, _val2090);
}
}
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<getCcl_args, getCcl_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCcl_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getCcl_args> {
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<getCcl_args> {
@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<getCcl_result, getCcl_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCcl_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCcl_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCcl_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getCcl_result(getCcl_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getCcl_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getCcl_result> {
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 _map2096 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2096.size);
long _key2097;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2098;
for (int _i2099 = 0; _i2099 < _map2096.size; ++_i2099)
{
_key2097 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2100 = iprot.readMapBegin();
_val2098 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2100.size);
String _key2101;
com.cinchapi.concourse.thrift.TObject _val2102;
for (int _i2103 = 0; _i2103 < _map2100.size; ++_i2103)
{
_key2101 = iprot.readString();
_val2102 = new com.cinchapi.concourse.thrift.TObject();
_val2102.read(iprot);
_val2098.put(_key2101, _val2102);
}
iprot.readMapEnd();
}
struct.success.put(_key2097, _val2098);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2104 : struct.success.entrySet())
{
oprot.writeI64(_iter2104.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2104.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2105 : _iter2104.getValue().entrySet())
{
oprot.writeString(_iter2105.getKey());
_iter2105.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<getCcl_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2106 : struct.success.entrySet())
{
oprot.writeI64(_iter2106.getKey());
{
oprot.writeI32(_iter2106.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2107 : _iter2106.getValue().entrySet())
{
oprot.writeString(_iter2107.getKey());
_iter2107.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 _map2108 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2108.size);
long _key2109;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2110;
for (int _i2111 = 0; _i2111 < _map2108.size; ++_i2111)
{
_key2109 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2112 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2110 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2112.size);
String _key2113;
com.cinchapi.concourse.thrift.TObject _val2114;
for (int _i2115 = 0; _i2115 < _map2112.size; ++_i2115)
{
_key2113 = iprot.readString();
_val2114 = new com.cinchapi.concourse.thrift.TObject();
_val2114.read(iprot);
_val2110.put(_key2113, _val2114);
}
}
struct.success.put(_key2109, _val2110);
}
}
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<getCriteriaTime_args, getCriteriaTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCriteriaTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getCriteriaTime_args> {
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<getCriteriaTime_args> {
@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<getCriteriaTime_result, getCriteriaTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCriteriaTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCriteriaTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCriteriaTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getCriteriaTime_result(getCriteriaTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getCriteriaTime_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getCriteriaTime_result> {
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 _map2116 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2116.size);
long _key2117;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2118;
for (int _i2119 = 0; _i2119 < _map2116.size; ++_i2119)
{
_key2117 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2120 = iprot.readMapBegin();
_val2118 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2120.size);
String _key2121;
com.cinchapi.concourse.thrift.TObject _val2122;
for (int _i2123 = 0; _i2123 < _map2120.size; ++_i2123)
{
_key2121 = iprot.readString();
_val2122 = new com.cinchapi.concourse.thrift.TObject();
_val2122.read(iprot);
_val2118.put(_key2121, _val2122);
}
iprot.readMapEnd();
}
struct.success.put(_key2117, _val2118);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2124 : struct.success.entrySet())
{
oprot.writeI64(_iter2124.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2124.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2125 : _iter2124.getValue().entrySet())
{
oprot.writeString(_iter2125.getKey());
_iter2125.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<getCriteriaTime_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2126 : struct.success.entrySet())
{
oprot.writeI64(_iter2126.getKey());
{
oprot.writeI32(_iter2126.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2127 : _iter2126.getValue().entrySet())
{
oprot.writeString(_iter2127.getKey());
_iter2127.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 _map2128 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2128.size);
long _key2129;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2130;
for (int _i2131 = 0; _i2131 < _map2128.size; ++_i2131)
{
_key2129 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2132 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2130 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2132.size);
String _key2133;
com.cinchapi.concourse.thrift.TObject _val2134;
for (int _i2135 = 0; _i2135 < _map2132.size; ++_i2135)
{
_key2133 = iprot.readString();
_val2134 = new com.cinchapi.concourse.thrift.TObject();
_val2134.read(iprot);
_val2130.put(_key2133, _val2134);
}
}
struct.success.put(_key2129, _val2130);
}
}
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<getCriteriaTimestr_args, getCriteriaTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCriteriaTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getCriteriaTimestr_args> {
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<getCriteriaTimestr_args> {
@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<getCriteriaTimestr_result, getCriteriaTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCriteriaTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCriteriaTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCriteriaTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getCriteriaTimestr_result(getCriteriaTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getCriteriaTimestr_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getCriteriaTimestr_result> {
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 _map2136 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2136.size);
long _key2137;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2138;
for (int _i2139 = 0; _i2139 < _map2136.size; ++_i2139)
{
_key2137 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2140 = iprot.readMapBegin();
_val2138 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2140.size);
String _key2141;
com.cinchapi.concourse.thrift.TObject _val2142;
for (int _i2143 = 0; _i2143 < _map2140.size; ++_i2143)
{
_key2141 = iprot.readString();
_val2142 = new com.cinchapi.concourse.thrift.TObject();
_val2142.read(iprot);
_val2138.put(_key2141, _val2142);
}
iprot.readMapEnd();
}
struct.success.put(_key2137, _val2138);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2144 : struct.success.entrySet())
{
oprot.writeI64(_iter2144.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2144.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2145 : _iter2144.getValue().entrySet())
{
oprot.writeString(_iter2145.getKey());
_iter2145.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<getCriteriaTimestr_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2146 : struct.success.entrySet())
{
oprot.writeI64(_iter2146.getKey());
{
oprot.writeI32(_iter2146.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2147 : _iter2146.getValue().entrySet())
{
oprot.writeString(_iter2147.getKey());
_iter2147.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 _map2148 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2148.size);
long _key2149;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2150;
for (int _i2151 = 0; _i2151 < _map2148.size; ++_i2151)
{
_key2149 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2152 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2150 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2152.size);
String _key2153;
com.cinchapi.concourse.thrift.TObject _val2154;
for (int _i2155 = 0; _i2155 < _map2152.size; ++_i2155)
{
_key2153 = iprot.readString();
_val2154 = new com.cinchapi.concourse.thrift.TObject();
_val2154.read(iprot);
_val2150.put(_key2153, _val2154);
}
}
struct.success.put(_key2149, _val2150);
}
}
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<getCclTime_args, getCclTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCclTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getCclTime_args> {
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<getCclTime_args> {
@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<getCclTime_result, getCclTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCclTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCclTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCclTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getCclTime_result(getCclTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getCclTime_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getCclTime_result> {
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 _map2156 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2156.size);
long _key2157;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2158;
for (int _i2159 = 0; _i2159 < _map2156.size; ++_i2159)
{
_key2157 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2160 = iprot.readMapBegin();
_val2158 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2160.size);
String _key2161;
com.cinchapi.concourse.thrift.TObject _val2162;
for (int _i2163 = 0; _i2163 < _map2160.size; ++_i2163)
{
_key2161 = iprot.readString();
_val2162 = new com.cinchapi.concourse.thrift.TObject();
_val2162.read(iprot);
_val2158.put(_key2161, _val2162);
}
iprot.readMapEnd();
}
struct.success.put(_key2157, _val2158);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2164 : struct.success.entrySet())
{
oprot.writeI64(_iter2164.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2164.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2165 : _iter2164.getValue().entrySet())
{
oprot.writeString(_iter2165.getKey());
_iter2165.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<getCclTime_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2166 : struct.success.entrySet())
{
oprot.writeI64(_iter2166.getKey());
{
oprot.writeI32(_iter2166.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2167 : _iter2166.getValue().entrySet())
{
oprot.writeString(_iter2167.getKey());
_iter2167.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 _map2168 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2168.size);
long _key2169;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2170;
for (int _i2171 = 0; _i2171 < _map2168.size; ++_i2171)
{
_key2169 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2172 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2170 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2172.size);
String _key2173;
com.cinchapi.concourse.thrift.TObject _val2174;
for (int _i2175 = 0; _i2175 < _map2172.size; ++_i2175)
{
_key2173 = iprot.readString();
_val2174 = new com.cinchapi.concourse.thrift.TObject();
_val2174.read(iprot);
_val2170.put(_key2173, _val2174);
}
}
struct.success.put(_key2169, _val2170);
}
}
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<getCclTimestr_args, getCclTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getCclTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getCclTimestr_args> {
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<getCclTimestr_args> {
@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<getCclTimestr_result, getCclTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getCclTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getCclTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getCclTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getCclTimestr_result(getCclTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getCclTimestr_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getCclTimestr_result> {
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 _map2176 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2176.size);
long _key2177;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2178;
for (int _i2179 = 0; _i2179 < _map2176.size; ++_i2179)
{
_key2177 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2180 = iprot.readMapBegin();
_val2178 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2180.size);
String _key2181;
com.cinchapi.concourse.thrift.TObject _val2182;
for (int _i2183 = 0; _i2183 < _map2180.size; ++_i2183)
{
_key2181 = iprot.readString();
_val2182 = new com.cinchapi.concourse.thrift.TObject();
_val2182.read(iprot);
_val2178.put(_key2181, _val2182);
}
iprot.readMapEnd();
}
struct.success.put(_key2177, _val2178);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2184 : struct.success.entrySet())
{
oprot.writeI64(_iter2184.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2184.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2185 : _iter2184.getValue().entrySet())
{
oprot.writeString(_iter2185.getKey());
_iter2185.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<getCclTimestr_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2186 : struct.success.entrySet())
{
oprot.writeI64(_iter2186.getKey());
{
oprot.writeI32(_iter2186.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2187 : _iter2186.getValue().entrySet())
{
oprot.writeString(_iter2187.getKey());
_iter2187.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 _map2188 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2188.size);
long _key2189;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2190;
for (int _i2191 = 0; _i2191 < _map2188.size; ++_i2191)
{
_key2189 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2192 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2190 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2192.size);
String _key2193;
com.cinchapi.concourse.thrift.TObject _val2194;
for (int _i2195 = 0; _i2195 < _map2192.size; ++_i2195)
{
_key2193 = iprot.readString();
_val2194 = new com.cinchapi.concourse.thrift.TObject();
_val2194.read(iprot);
_val2190.put(_key2193, _val2194);
}
}
struct.success.put(_key2189, _val2190);
}
}
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<getKeyCcl_args, getKeyCcl_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCcl_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyCcl_args> {
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<getKeyCcl_args> {
@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<getKeyCcl_result, getKeyCcl_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCcl_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyCcl_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyCcl_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyCcl_result(getKeyCcl_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyCcl_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyCcl_result> {
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 _map2196 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2196.size);
long _key2197;
com.cinchapi.concourse.thrift.TObject _val2198;
for (int _i2199 = 0; _i2199 < _map2196.size; ++_i2199)
{
_key2197 = iprot.readI64();
_val2198 = new com.cinchapi.concourse.thrift.TObject();
_val2198.read(iprot);
struct.success.put(_key2197, _val2198);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter2200 : struct.success.entrySet())
{
oprot.writeI64(_iter2200.getKey());
_iter2200.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<getKeyCcl_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter2201 : struct.success.entrySet())
{
oprot.writeI64(_iter2201.getKey());
_iter2201.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 _map2202 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2202.size);
long _key2203;
com.cinchapi.concourse.thrift.TObject _val2204;
for (int _i2205 = 0; _i2205 < _map2202.size; ++_i2205)
{
_key2203 = iprot.readI64();
_val2204 = new com.cinchapi.concourse.thrift.TObject();
_val2204.read(iprot);
struct.success.put(_key2203, _val2204);
}
}
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<getKeyCriteriaTime_args, getKeyCriteriaTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCriteriaTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyCriteriaTime_args> {
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<getKeyCriteriaTime_args> {
@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<getKeyCriteriaTime_result, getKeyCriteriaTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCriteriaTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyCriteriaTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyCriteriaTime_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyCriteriaTime_result(getKeyCriteriaTime_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyCriteriaTime_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyCriteriaTime_result> {
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 _map2206 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2206.size);
long _key2207;
com.cinchapi.concourse.thrift.TObject _val2208;
for (int _i2209 = 0; _i2209 < _map2206.size; ++_i2209)
{
_key2207 = iprot.readI64();
_val2208 = new com.cinchapi.concourse.thrift.TObject();
_val2208.read(iprot);
struct.success.put(_key2207, _val2208);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter2210 : struct.success.entrySet())
{
oprot.writeI64(_iter2210.getKey());
_iter2210.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<getKeyCriteriaTime_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter2211 : struct.success.entrySet())
{
oprot.writeI64(_iter2211.getKey());
_iter2211.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 _map2212 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2212.size);
long _key2213;
com.cinchapi.concourse.thrift.TObject _val2214;
for (int _i2215 = 0; _i2215 < _map2212.size; ++_i2215)
{
_key2213 = iprot.readI64();
_val2214 = new com.cinchapi.concourse.thrift.TObject();
_val2214.read(iprot);
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);
}
}
}
}
public static class getKeyCriteriaTimestr_args implements org.apache.thrift.TBase<getKeyCriteriaTimestr_args, getKeyCriteriaTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCriteriaTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyCriteriaTimestr_args> {
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<getKeyCriteriaTimestr_args> {
@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<getKeyCriteriaTimestr_result, getKeyCriteriaTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCriteriaTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyCriteriaTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyCriteriaTimestr_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyCriteriaTimestr_result(getKeyCriteriaTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyCriteriaTimestr_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyCriteriaTimestr_result> {
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 _map2216 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2216.size);
long _key2217;
com.cinchapi.concourse.thrift.TObject _val2218;
for (int _i2219 = 0; _i2219 < _map2216.size; ++_i2219)
{
_key2217 = iprot.readI64();
_val2218 = new com.cinchapi.concourse.thrift.TObject();
_val2218.read(iprot);
struct.success.put(_key2217, _val2218);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter2220 : struct.success.entrySet())
{
oprot.writeI64(_iter2220.getKey());
_iter2220.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<getKeyCriteriaTimestr_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter2221 : struct.success.entrySet())
{
oprot.writeI64(_iter2221.getKey());
_iter2221.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 _map2222 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2222.size);
long _key2223;
com.cinchapi.concourse.thrift.TObject _val2224;
for (int _i2225 = 0; _i2225 < _map2222.size; ++_i2225)
{
_key2223 = iprot.readI64();
_val2224 = new com.cinchapi.concourse.thrift.TObject();
_val2224.read(iprot);
struct.success.put(_key2223, _val2224);
}
}
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<getKeyCclTime_args, getKeyCclTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCclTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyCclTime_args> {
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<getKeyCclTime_args> {
@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<getKeyCclTime_result, getKeyCclTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCclTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyCclTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyCclTime_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyCclTime_result(getKeyCclTime_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyCclTime_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyCclTime_result> {
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 _map2226 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(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);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter2230 : struct.success.entrySet())
{
oprot.writeI64(_iter2230.getKey());
_iter2230.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<getKeyCclTime_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter2231 : struct.success.entrySet())
{
oprot.writeI64(_iter2231.getKey());
_iter2231.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 _map2232 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2232.size);
long _key2233;
com.cinchapi.concourse.thrift.TObject _val2234;
for (int _i2235 = 0; _i2235 < _map2232.size; ++_i2235)
{
_key2233 = iprot.readI64();
_val2234 = new com.cinchapi.concourse.thrift.TObject();
_val2234.read(iprot);
struct.success.put(_key2233, _val2234);
}
}
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<getKeyCclTimestr_args, getKeyCclTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCclTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<getKeyCclTimestr_args> {
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<getKeyCclTimestr_args> {
@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<getKeyCclTimestr_result, getKeyCclTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeyCclTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeyCclTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeyCclTimestr_resultTupleSchemeFactory());
}
public Map<Long,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,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 <i>other</i>.
*/
public getKeyCclTimestr_result(getKeyCclTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,com.cinchapi.concourse.thrift.TObject> __this__success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(other.success.size());
for (Map.Entry<Long, com.cinchapi.concourse.thrift.TObject> 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<Long,com.cinchapi.concourse.thrift.TObject>();
}
this.success.put(key, val);
}
public Map<Long,com.cinchapi.concourse.thrift.TObject> getSuccess() {
return this.success;
}
public getKeyCclTimestr_result setSuccess(Map<Long,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 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<Long,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeyCclTimestr_result> {
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 _map2236 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(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);
}
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<Long, com.cinchapi.concourse.thrift.TObject> _iter2240 : struct.success.entrySet())
{
oprot.writeI64(_iter2240.getKey());
_iter2240.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<getKeyCclTimestr_result> {
@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<Long, com.cinchapi.concourse.thrift.TObject> _iter2241 : struct.success.entrySet())
{
oprot.writeI64(_iter2241.getKey());
_iter2241.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 _map2242 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.success = new LinkedHashMap<Long,com.cinchapi.concourse.thrift.TObject>(2*_map2242.size);
long _key2243;
com.cinchapi.concourse.thrift.TObject _val2244;
for (int _i2245 = 0; _i2245 < _map2242.size; ++_i2245)
{
_key2243 = iprot.readI64();
_val2244 = new com.cinchapi.concourse.thrift.TObject();
_val2244.read(iprot);
struct.success.put(_key2243, _val2244);
}
}
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<getKeysCriteria_args, getKeysCriteria_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCriteria_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCriteria_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCriteria_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysCriteria_args(getKeysCriteria_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysCriteria_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysCriteria_args> {
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 _list2246 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2246.size);
String _elem2247;
for (int _i2248 = 0; _i2248 < _list2246.size; ++_i2248)
{
_elem2247 = iprot.readString();
struct.keys.add(_elem2247);
}
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 _iter2249 : struct.keys)
{
oprot.writeString(_iter2249);
}
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<getKeysCriteria_args> {
@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 _iter2250 : struct.keys)
{
oprot.writeString(_iter2250);
}
}
}
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 _list2251 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2251.size);
String _elem2252;
for (int _i2253 = 0; _i2253 < _list2251.size; ++_i2253)
{
_elem2252 = iprot.readString();
struct.keys.add(_elem2252);
}
}
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<getKeysCriteria_result, getKeysCriteria_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCriteria_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCriteria_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCriteria_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysCriteria_result(getKeysCriteria_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysCriteria_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysCriteria_result> {
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 _map2254 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2254.size);
long _key2255;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2256;
for (int _i2257 = 0; _i2257 < _map2254.size; ++_i2257)
{
_key2255 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2258 = iprot.readMapBegin();
_val2256 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2258.size);
String _key2259;
com.cinchapi.concourse.thrift.TObject _val2260;
for (int _i2261 = 0; _i2261 < _map2258.size; ++_i2261)
{
_key2259 = iprot.readString();
_val2260 = new com.cinchapi.concourse.thrift.TObject();
_val2260.read(iprot);
_val2256.put(_key2259, _val2260);
}
iprot.readMapEnd();
}
struct.success.put(_key2255, _val2256);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2262 : struct.success.entrySet())
{
oprot.writeI64(_iter2262.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2262.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2263 : _iter2262.getValue().entrySet())
{
oprot.writeString(_iter2263.getKey());
_iter2263.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<getKeysCriteria_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2264 : struct.success.entrySet())
{
oprot.writeI64(_iter2264.getKey());
{
oprot.writeI32(_iter2264.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2265 : _iter2264.getValue().entrySet())
{
oprot.writeString(_iter2265.getKey());
_iter2265.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 _map2266 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2266.size);
long _key2267;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2268;
for (int _i2269 = 0; _i2269 < _map2266.size; ++_i2269)
{
_key2267 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2270 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2268 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2270.size);
String _key2271;
com.cinchapi.concourse.thrift.TObject _val2272;
for (int _i2273 = 0; _i2273 < _map2270.size; ++_i2273)
{
_key2271 = iprot.readString();
_val2272 = new com.cinchapi.concourse.thrift.TObject();
_val2272.read(iprot);
_val2268.put(_key2271, _val2272);
}
}
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);
}
}
}
}
public static class getKeysCcl_args implements org.apache.thrift.TBase<getKeysCcl_args, getKeysCcl_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCcl_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCcl_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCcl_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysCcl_args(getKeysCcl_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysCcl_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysCcl_args> {
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 _list2274 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2274.size);
String _elem2275;
for (int _i2276 = 0; _i2276 < _list2274.size; ++_i2276)
{
_elem2275 = iprot.readString();
struct.keys.add(_elem2275);
}
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 _iter2277 : struct.keys)
{
oprot.writeString(_iter2277);
}
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<getKeysCcl_args> {
@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 _iter2278 : struct.keys)
{
oprot.writeString(_iter2278);
}
}
}
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 _list2279 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2279.size);
String _elem2280;
for (int _i2281 = 0; _i2281 < _list2279.size; ++_i2281)
{
_elem2280 = iprot.readString();
struct.keys.add(_elem2280);
}
}
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<getKeysCcl_result, getKeysCcl_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCcl_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCcl_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCcl_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysCcl_result(getKeysCcl_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysCcl_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysCcl_result> {
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 _map2282 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2282.size);
long _key2283;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2284;
for (int _i2285 = 0; _i2285 < _map2282.size; ++_i2285)
{
_key2283 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2286 = iprot.readMapBegin();
_val2284 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2286.size);
String _key2287;
com.cinchapi.concourse.thrift.TObject _val2288;
for (int _i2289 = 0; _i2289 < _map2286.size; ++_i2289)
{
_key2287 = iprot.readString();
_val2288 = new com.cinchapi.concourse.thrift.TObject();
_val2288.read(iprot);
_val2284.put(_key2287, _val2288);
}
iprot.readMapEnd();
}
struct.success.put(_key2283, _val2284);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2290 : struct.success.entrySet())
{
oprot.writeI64(_iter2290.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2290.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2291 : _iter2290.getValue().entrySet())
{
oprot.writeString(_iter2291.getKey());
_iter2291.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<getKeysCcl_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2292 : struct.success.entrySet())
{
oprot.writeI64(_iter2292.getKey());
{
oprot.writeI32(_iter2292.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2293 : _iter2292.getValue().entrySet())
{
oprot.writeString(_iter2293.getKey());
_iter2293.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 _map2294 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2294.size);
long _key2295;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2296;
for (int _i2297 = 0; _i2297 < _map2294.size; ++_i2297)
{
_key2295 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2298 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2296 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2298.size);
String _key2299;
com.cinchapi.concourse.thrift.TObject _val2300;
for (int _i2301 = 0; _i2301 < _map2298.size; ++_i2301)
{
_key2299 = iprot.readString();
_val2300 = new com.cinchapi.concourse.thrift.TObject();
_val2300.read(iprot);
_val2296.put(_key2299, _val2300);
}
}
struct.success.put(_key2295, _val2296);
}
}
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<getKeysCriteriaTime_args, getKeysCriteriaTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCriteriaTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCriteriaTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCriteriaTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysCriteriaTime_args(getKeysCriteriaTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysCriteriaTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysCriteriaTime_args> {
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 _list2302 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2302.size);
String _elem2303;
for (int _i2304 = 0; _i2304 < _list2302.size; ++_i2304)
{
_elem2303 = iprot.readString();
struct.keys.add(_elem2303);
}
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 _iter2305 : struct.keys)
{
oprot.writeString(_iter2305);
}
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<getKeysCriteriaTime_args> {
@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 _iter2306 : struct.keys)
{
oprot.writeString(_iter2306);
}
}
}
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 _list2307 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2307.size);
String _elem2308;
for (int _i2309 = 0; _i2309 < _list2307.size; ++_i2309)
{
_elem2308 = iprot.readString();
struct.keys.add(_elem2308);
}
}
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<getKeysCriteriaTime_result, getKeysCriteriaTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCriteriaTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCriteriaTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCriteriaTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysCriteriaTime_result(getKeysCriteriaTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysCriteriaTime_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysCriteriaTime_result> {
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 _map2310 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2310.size);
long _key2311;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2312;
for (int _i2313 = 0; _i2313 < _map2310.size; ++_i2313)
{
_key2311 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2314 = iprot.readMapBegin();
_val2312 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2314.size);
String _key2315;
com.cinchapi.concourse.thrift.TObject _val2316;
for (int _i2317 = 0; _i2317 < _map2314.size; ++_i2317)
{
_key2315 = iprot.readString();
_val2316 = new com.cinchapi.concourse.thrift.TObject();
_val2316.read(iprot);
_val2312.put(_key2315, _val2316);
}
iprot.readMapEnd();
}
struct.success.put(_key2311, _val2312);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2318 : struct.success.entrySet())
{
oprot.writeI64(_iter2318.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2318.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2319 : _iter2318.getValue().entrySet())
{
oprot.writeString(_iter2319.getKey());
_iter2319.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<getKeysCriteriaTime_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2320 : struct.success.entrySet())
{
oprot.writeI64(_iter2320.getKey());
{
oprot.writeI32(_iter2320.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2321 : _iter2320.getValue().entrySet())
{
oprot.writeString(_iter2321.getKey());
_iter2321.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 _map2322 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2322.size);
long _key2323;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2324;
for (int _i2325 = 0; _i2325 < _map2322.size; ++_i2325)
{
_key2323 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2326 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2324 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2326.size);
String _key2327;
com.cinchapi.concourse.thrift.TObject _val2328;
for (int _i2329 = 0; _i2329 < _map2326.size; ++_i2329)
{
_key2327 = iprot.readString();
_val2328 = new com.cinchapi.concourse.thrift.TObject();
_val2328.read(iprot);
_val2324.put(_key2327, _val2328);
}
}
struct.success.put(_key2323, _val2324);
}
}
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<getKeysCriteriaTimestr_args, getKeysCriteriaTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCriteriaTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCriteriaTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCriteriaTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysCriteriaTimestr_args(getKeysCriteriaTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysCriteriaTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysCriteriaTimestr_args> {
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 _list2330 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2330.size);
String _elem2331;
for (int _i2332 = 0; _i2332 < _list2330.size; ++_i2332)
{
_elem2331 = iprot.readString();
struct.keys.add(_elem2331);
}
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 _iter2333 : struct.keys)
{
oprot.writeString(_iter2333);
}
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<getKeysCriteriaTimestr_args> {
@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 _iter2334 : struct.keys)
{
oprot.writeString(_iter2334);
}
}
}
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 _list2335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2335.size);
String _elem2336;
for (int _i2337 = 0; _i2337 < _list2335.size; ++_i2337)
{
_elem2336 = iprot.readString();
struct.keys.add(_elem2336);
}
}
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<getKeysCriteriaTimestr_result, getKeysCriteriaTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCriteriaTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCriteriaTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCriteriaTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysCriteriaTimestr_result(getKeysCriteriaTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysCriteriaTimestr_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysCriteriaTimestr_result> {
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 _map2338 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2338.size);
long _key2339;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2340;
for (int _i2341 = 0; _i2341 < _map2338.size; ++_i2341)
{
_key2339 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2342 = iprot.readMapBegin();
_val2340 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2342.size);
String _key2343;
com.cinchapi.concourse.thrift.TObject _val2344;
for (int _i2345 = 0; _i2345 < _map2342.size; ++_i2345)
{
_key2343 = iprot.readString();
_val2344 = new com.cinchapi.concourse.thrift.TObject();
_val2344.read(iprot);
_val2340.put(_key2343, _val2344);
}
iprot.readMapEnd();
}
struct.success.put(_key2339, _val2340);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2346 : struct.success.entrySet())
{
oprot.writeI64(_iter2346.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2346.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2347 : _iter2346.getValue().entrySet())
{
oprot.writeString(_iter2347.getKey());
_iter2347.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<getKeysCriteriaTimestr_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2348 : struct.success.entrySet())
{
oprot.writeI64(_iter2348.getKey());
{
oprot.writeI32(_iter2348.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2349 : _iter2348.getValue().entrySet())
{
oprot.writeString(_iter2349.getKey());
_iter2349.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 _map2350 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2350.size);
long _key2351;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2352;
for (int _i2353 = 0; _i2353 < _map2350.size; ++_i2353)
{
_key2351 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2354 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2352 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2354.size);
String _key2355;
com.cinchapi.concourse.thrift.TObject _val2356;
for (int _i2357 = 0; _i2357 < _map2354.size; ++_i2357)
{
_key2355 = iprot.readString();
_val2356 = new com.cinchapi.concourse.thrift.TObject();
_val2356.read(iprot);
_val2352.put(_key2355, _val2356);
}
}
struct.success.put(_key2351, _val2352);
}
}
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<getKeysCclTime_args, getKeysCclTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCclTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCclTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCclTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysCclTime_args(getKeysCclTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysCclTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysCclTime_args> {
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 _list2358 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2358.size);
String _elem2359;
for (int _i2360 = 0; _i2360 < _list2358.size; ++_i2360)
{
_elem2359 = iprot.readString();
struct.keys.add(_elem2359);
}
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 _iter2361 : struct.keys)
{
oprot.writeString(_iter2361);
}
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<getKeysCclTime_args> {
@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 _iter2362 : struct.keys)
{
oprot.writeString(_iter2362);
}
}
}
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 _list2363 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2363.size);
String _elem2364;
for (int _i2365 = 0; _i2365 < _list2363.size; ++_i2365)
{
_elem2364 = iprot.readString();
struct.keys.add(_elem2364);
}
}
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<getKeysCclTime_result, getKeysCclTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCclTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCclTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCclTime_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysCclTime_result(getKeysCclTime_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysCclTime_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysCclTime_result> {
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 _map2366 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2366.size);
long _key2367;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2368;
for (int _i2369 = 0; _i2369 < _map2366.size; ++_i2369)
{
_key2367 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2370 = iprot.readMapBegin();
_val2368 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2370.size);
String _key2371;
com.cinchapi.concourse.thrift.TObject _val2372;
for (int _i2373 = 0; _i2373 < _map2370.size; ++_i2373)
{
_key2371 = iprot.readString();
_val2372 = new com.cinchapi.concourse.thrift.TObject();
_val2372.read(iprot);
_val2368.put(_key2371, _val2372);
}
iprot.readMapEnd();
}
struct.success.put(_key2367, _val2368);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2374 : struct.success.entrySet())
{
oprot.writeI64(_iter2374.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2374.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2375 : _iter2374.getValue().entrySet())
{
oprot.writeString(_iter2375.getKey());
_iter2375.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<getKeysCclTime_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2376 : struct.success.entrySet())
{
oprot.writeI64(_iter2376.getKey());
{
oprot.writeI32(_iter2376.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2377 : _iter2376.getValue().entrySet())
{
oprot.writeString(_iter2377.getKey());
_iter2377.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 _map2378 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2378.size);
long _key2379;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2380;
for (int _i2381 = 0; _i2381 < _map2378.size; ++_i2381)
{
_key2379 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2382 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2380 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2382.size);
String _key2383;
com.cinchapi.concourse.thrift.TObject _val2384;
for (int _i2385 = 0; _i2385 < _map2382.size; ++_i2385)
{
_key2383 = iprot.readString();
_val2384 = new com.cinchapi.concourse.thrift.TObject();
_val2384.read(iprot);
_val2380.put(_key2383, _val2384);
}
}
struct.success.put(_key2379, _val2380);
}
}
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<getKeysCclTimestr_args, getKeysCclTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCclTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCclTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCclTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public getKeysCclTimestr_args(getKeysCclTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public getKeysCclTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<getKeysCclTimestr_args> {
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 _list2386 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2386.size);
String _elem2387;
for (int _i2388 = 0; _i2388 < _list2386.size; ++_i2388)
{
_elem2387 = iprot.readString();
struct.keys.add(_elem2387);
}
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 _iter2389 : struct.keys)
{
oprot.writeString(_iter2389);
}
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<getKeysCclTimestr_args> {
@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 _iter2390 : struct.keys)
{
oprot.writeString(_iter2390);
}
}
}
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 _list2391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2391.size);
String _elem2392;
for (int _i2393 = 0; _i2393 < _list2391.size; ++_i2393)
{
_elem2392 = iprot.readString();
struct.keys.add(_elem2392);
}
}
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<getKeysCclTimestr_result, getKeysCclTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<getKeysCclTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new getKeysCclTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new getKeysCclTimestr_resultTupleSchemeFactory());
}
public Map<Long,Map<String,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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long,Map<String,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 <i>other</i>.
*/
public getKeysCclTimestr_result(getKeysCclTimestr_result other) {
if (other.isSetSuccess()) {
Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> __this__success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(other.success.size());
for (Map.Entry<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> other_element : other.success.entrySet()) {
Long other_element_key = other_element.getKey();
Map<String,com.cinchapi.concourse.thrift.TObject> other_element_value = other_element.getValue();
Long __this__success_copy_key = other_element_key;
Map<String,com.cinchapi.concourse.thrift.TObject> __this__success_copy_value = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(other_element_value.size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> 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<String,com.cinchapi.concourse.thrift.TObject> val) {
if (this.success == null) {
this.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>();
}
this.success.put(key, val);
}
public Map<Long,Map<String,com.cinchapi.concourse.thrift.TObject>> getSuccess() {
return this.success;
}
public getKeysCclTimestr_result setSuccess(Map<Long,Map<String,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 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<Long,Map<String,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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<getKeysCclTimestr_result> {
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 _map2394 = iprot.readMapBegin();
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2394.size);
long _key2395;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2396;
for (int _i2397 = 0; _i2397 < _map2394.size; ++_i2397)
{
_key2395 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2398 = iprot.readMapBegin();
_val2396 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2398.size);
String _key2399;
com.cinchapi.concourse.thrift.TObject _val2400;
for (int _i2401 = 0; _i2401 < _map2398.size; ++_i2401)
{
_key2399 = iprot.readString();
_val2400 = new com.cinchapi.concourse.thrift.TObject();
_val2400.read(iprot);
_val2396.put(_key2399, _val2400);
}
iprot.readMapEnd();
}
struct.success.put(_key2395, _val2396);
}
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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2402 : struct.success.entrySet())
{
oprot.writeI64(_iter2402.getKey());
{
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, _iter2402.getValue().size()));
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2403 : _iter2402.getValue().entrySet())
{
oprot.writeString(_iter2403.getKey());
_iter2403.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<getKeysCclTimestr_result> {
@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<Long, Map<String,com.cinchapi.concourse.thrift.TObject>> _iter2404 : struct.success.entrySet())
{
oprot.writeI64(_iter2404.getKey());
{
oprot.writeI32(_iter2404.getValue().size());
for (Map.Entry<String, com.cinchapi.concourse.thrift.TObject> _iter2405 : _iter2404.getValue().entrySet())
{
oprot.writeString(_iter2405.getKey());
_iter2405.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 _map2406 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.MAP, iprot.readI32());
struct.success = new LinkedHashMap<Long,Map<String,com.cinchapi.concourse.thrift.TObject>>(2*_map2406.size);
long _key2407;
Map<String,com.cinchapi.concourse.thrift.TObject> _val2408;
for (int _i2409 = 0; _i2409 < _map2406.size; ++_i2409)
{
_key2407 = iprot.readI64();
{
org.apache.thrift.protocol.TMap _map2410 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
_val2408 = new LinkedHashMap<String,com.cinchapi.concourse.thrift.TObject>(2*_map2410.size);
String _key2411;
com.cinchapi.concourse.thrift.TObject _val2412;
for (int _i2413 = 0; _i2413 < _map2410.size; ++_i2413)
{
_key2411 = iprot.readString();
_val2412 = new com.cinchapi.concourse.thrift.TObject();
_val2412.read(iprot);
_val2408.put(_key2411, _val2412);
}
}
struct.success.put(_key2407, _val2408);
}
}
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<verifyKeyValueRecord_args, verifyKeyValueRecord_args._Fields>, java.io.Serializable, Cloneable, Comparable<verifyKeyValueRecord_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<verifyKeyValueRecord_args> {
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<verifyKeyValueRecord_args> {
@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<verifyKeyValueRecord_result, verifyKeyValueRecord_result._Fields>, java.io.Serializable, Cloneable, Comparable<verifyKeyValueRecord_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<verifyKeyValueRecord_result> {
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<verifyKeyValueRecord_result> {
@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<verifyKeyValueRecordTime_args, verifyKeyValueRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<verifyKeyValueRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<verifyKeyValueRecordTime_args> {
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<verifyKeyValueRecordTime_args> {
@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<verifyKeyValueRecordTime_result, verifyKeyValueRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<verifyKeyValueRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<verifyKeyValueRecordTime_result> {
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<verifyKeyValueRecordTime_result> {
@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<verifyKeyValueRecordTimestr_args, verifyKeyValueRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<verifyKeyValueRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<verifyKeyValueRecordTimestr_args> {
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<verifyKeyValueRecordTimestr_args> {
@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<verifyKeyValueRecordTimestr_result, verifyKeyValueRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<verifyKeyValueRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<verifyKeyValueRecordTimestr_result> {
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<verifyKeyValueRecordTimestr_result> {
@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<jsonifyRecords_args, jsonifyRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<jsonifyRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new jsonifyRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new jsonifyRecords_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public jsonifyRecords_args(jsonifyRecords_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public jsonifyRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<jsonifyRecords_args> {
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 _list2414 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2414.size);
long _elem2415;
for (int _i2416 = 0; _i2416 < _list2414.size; ++_i2416)
{
_elem2415 = iprot.readI64();
struct.records.add(_elem2415);
}
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 _iter2417 : struct.records)
{
oprot.writeI64(_iter2417);
}
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<jsonifyRecords_args> {
@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 _iter2418 : struct.records)
{
oprot.writeI64(_iter2418);
}
}
}
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 _list2419 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2419.size);
long _elem2420;
for (int _i2421 = 0; _i2421 < _list2419.size; ++_i2421)
{
_elem2420 = iprot.readI64();
struct.records.add(_elem2420);
}
}
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<jsonifyRecords_result, jsonifyRecords_result._Fields>, java.io.Serializable, Cloneable, Comparable<jsonifyRecords_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<jsonifyRecords_result> {
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<jsonifyRecords_result> {
@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<jsonifyRecordsTime_args, jsonifyRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<jsonifyRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new jsonifyRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new jsonifyRecordsTime_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public jsonifyRecordsTime_args(jsonifyRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public jsonifyRecordsTime_args setRecords(List<Long> 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<Long>)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<Object> list = new ArrayList<Object>();
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<jsonifyRecordsTime_args> {
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 _list2422 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2422.size);
long _elem2423;
for (int _i2424 = 0; _i2424 < _list2422.size; ++_i2424)
{
_elem2423 = iprot.readI64();
struct.records.add(_elem2423);
}
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 _iter2425 : struct.records)
{
oprot.writeI64(_iter2425);
}
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<jsonifyRecordsTime_args> {
@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 _iter2426 : struct.records)
{
oprot.writeI64(_iter2426);
}
}
}
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 _list2427 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2427.size);
long _elem2428;
for (int _i2429 = 0; _i2429 < _list2427.size; ++_i2429)
{
_elem2428 = iprot.readI64();
struct.records.add(_elem2428);
}
}
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<jsonifyRecordsTime_result, jsonifyRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<jsonifyRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<jsonifyRecordsTime_result> {
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<jsonifyRecordsTime_result> {
@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<jsonifyRecordsTimestr_args, jsonifyRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<jsonifyRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new jsonifyRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new jsonifyRecordsTimestr_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public jsonifyRecordsTimestr_args(jsonifyRecordsTimestr_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public jsonifyRecordsTimestr_args setRecords(List<Long> 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<Long>)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<Object> list = new ArrayList<Object>();
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<jsonifyRecordsTimestr_args> {
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 _list2430 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2430.size);
long _elem2431;
for (int _i2432 = 0; _i2432 < _list2430.size; ++_i2432)
{
_elem2431 = iprot.readI64();
struct.records.add(_elem2431);
}
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 _iter2433 : struct.records)
{
oprot.writeI64(_iter2433);
}
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<jsonifyRecordsTimestr_args> {
@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 _iter2434 : struct.records)
{
oprot.writeI64(_iter2434);
}
}
}
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 _list2435 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2435.size);
long _elem2436;
for (int _i2437 = 0; _i2437 < _list2435.size; ++_i2437)
{
_elem2436 = iprot.readI64();
struct.records.add(_elem2436);
}
}
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<jsonifyRecordsTimestr_result, jsonifyRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<jsonifyRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<jsonifyRecordsTimestr_result> {
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<jsonifyRecordsTimestr_result> {
@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<findCriteria_args, findCriteria_args._Fields>, java.io.Serializable, Cloneable, Comparable<findCriteria_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<findCriteria_args> {
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<findCriteria_args> {
@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<findCriteria_result, findCriteria_result._Fields>, java.io.Serializable, Cloneable, Comparable<findCriteria_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findCriteria_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findCriteria_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findCriteria_result(findCriteria_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findCriteria_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findCriteria_result> {
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 _set2438 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set2438.size);
long _elem2439;
for (int _i2440 = 0; _i2440 < _set2438.size; ++_i2440)
{
_elem2439 = iprot.readI64();
struct.success.add(_elem2439);
}
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 _iter2441 : struct.success)
{
oprot.writeI64(_iter2441);
}
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<findCriteria_result> {
@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 _iter2442 : struct.success)
{
oprot.writeI64(_iter2442);
}
}
}
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 _set2443 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set2443.size);
long _elem2444;
for (int _i2445 = 0; _i2445 < _set2443.size; ++_i2445)
{
_elem2444 = iprot.readI64();
struct.success.add(_elem2444);
}
}
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<findCcl_args, findCcl_args._Fields>, java.io.Serializable, Cloneable, Comparable<findCcl_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<findCcl_args> {
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<findCcl_args> {
@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<findCcl_result, findCcl_result._Fields>, java.io.Serializable, Cloneable, Comparable<findCcl_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findCcl_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findCcl_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findCcl_result(findCcl_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findCcl_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findCcl_result> {
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 _set2446 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set2446.size);
long _elem2447;
for (int _i2448 = 0; _i2448 < _set2446.size; ++_i2448)
{
_elem2447 = iprot.readI64();
struct.success.add(_elem2447);
}
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 _iter2449 : struct.success)
{
oprot.writeI64(_iter2449);
}
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<findCcl_result> {
@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 _iter2450 : struct.success)
{
oprot.writeI64(_iter2450);
}
}
}
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 _set2451 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set2451.size);
long _elem2452;
for (int _i2453 = 0; _i2453 < _set2451.size; ++_i2453)
{
_elem2452 = iprot.readI64();
struct.success.add(_elem2452);
}
}
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<findKeyOperatorValues_args, findKeyOperatorValues_args._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorValues_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.TObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<com.cinchapi.concourse.thrift.TObject> 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 <i>other</i>.
*/
public findKeyOperatorValues_args(findKeyOperatorValues_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetOperator()) {
this.operator = other.operator;
}
if (other.isSetValues()) {
List<com.cinchapi.concourse.thrift.TObject> __this__values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.values.add(elem);
}
public List<com.cinchapi.concourse.thrift.TObject> getValues() {
return this.values;
}
public findKeyOperatorValues_args setValues(List<com.cinchapi.concourse.thrift.TObject> 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<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 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<Object> list = new ArrayList<Object>();
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<findKeyOperatorValues_args> {
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 _list2454 = iprot.readListBegin();
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2454.size);
com.cinchapi.concourse.thrift.TObject _elem2455;
for (int _i2456 = 0; _i2456 < _list2454.size; ++_i2456)
{
_elem2455 = new com.cinchapi.concourse.thrift.TObject();
_elem2455.read(iprot);
struct.values.add(_elem2455);
}
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 _iter2457 : struct.values)
{
_iter2457.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<findKeyOperatorValues_args> {
@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 _iter2458 : struct.values)
{
_iter2458.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 _list2459 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2459.size);
com.cinchapi.concourse.thrift.TObject _elem2460;
for (int _i2461 = 0; _i2461 < _list2459.size; ++_i2461)
{
_elem2460 = new com.cinchapi.concourse.thrift.TObject();
_elem2460.read(iprot);
struct.values.add(_elem2460);
}
}
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<findKeyOperatorValues_result, findKeyOperatorValues_result._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorValues_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findKeyOperatorValues_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findKeyOperatorValues_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findKeyOperatorValues_result(findKeyOperatorValues_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findKeyOperatorValues_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findKeyOperatorValues_result> {
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 _set2462 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(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, 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 _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 findKeyOperatorValues_resultTupleSchemeFactory implements SchemeFactory {
public findKeyOperatorValues_resultTupleScheme getScheme() {
return new findKeyOperatorValues_resultTupleScheme();
}
}
private static class findKeyOperatorValues_resultTupleScheme extends TupleScheme<findKeyOperatorValues_result> {
@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 _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, 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 _set2467 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(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 findKeyOperatorValuesTime_args implements org.apache.thrift.TBase<findKeyOperatorValuesTime_args, findKeyOperatorValuesTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorValuesTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.TObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<com.cinchapi.concourse.thrift.TObject> 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 <i>other</i>.
*/
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<com.cinchapi.concourse.thrift.TObject> __this__values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.values.add(elem);
}
public List<com.cinchapi.concourse.thrift.TObject> getValues() {
return this.values;
}
public findKeyOperatorValuesTime_args setValues(List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>)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<Object> list = new ArrayList<Object>();
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<findKeyOperatorValuesTime_args> {
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 _list2470 = iprot.readListBegin();
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2470.size);
com.cinchapi.concourse.thrift.TObject _elem2471;
for (int _i2472 = 0; _i2472 < _list2470.size; ++_i2472)
{
_elem2471 = new com.cinchapi.concourse.thrift.TObject();
_elem2471.read(iprot);
struct.values.add(_elem2471);
}
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 _iter2473 : struct.values)
{
_iter2473.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<findKeyOperatorValuesTime_args> {
@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 _iter2474 : struct.values)
{
_iter2474.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 _list2475 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2475.size);
com.cinchapi.concourse.thrift.TObject _elem2476;
for (int _i2477 = 0; _i2477 < _list2475.size; ++_i2477)
{
_elem2476 = new com.cinchapi.concourse.thrift.TObject();
_elem2476.read(iprot);
struct.values.add(_elem2476);
}
}
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<findKeyOperatorValuesTime_result, findKeyOperatorValuesTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorValuesTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findKeyOperatorValuesTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findKeyOperatorValuesTime_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findKeyOperatorValuesTime_result(findKeyOperatorValuesTime_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findKeyOperatorValuesTime_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findKeyOperatorValuesTime_result> {
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 _set2478 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set2478.size);
long _elem2479;
for (int _i2480 = 0; _i2480 < _set2478.size; ++_i2480)
{
_elem2479 = iprot.readI64();
struct.success.add(_elem2479);
}
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 _iter2481 : struct.success)
{
oprot.writeI64(_iter2481);
}
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<findKeyOperatorValuesTime_result> {
@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 _iter2482 : struct.success)
{
oprot.writeI64(_iter2482);
}
}
}
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 _set2483 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set2483.size);
long _elem2484;
for (int _i2485 = 0; _i2485 < _set2483.size; ++_i2485)
{
_elem2484 = iprot.readI64();
struct.success.add(_elem2484);
}
}
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<findKeyOperatorValuesTimestr_args, findKeyOperatorValuesTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorValuesTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.TObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<com.cinchapi.concourse.thrift.TObject> 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 <i>other</i>.
*/
public findKeyOperatorValuesTimestr_args(findKeyOperatorValuesTimestr_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetOperator()) {
this.operator = other.operator;
}
if (other.isSetValues()) {
List<com.cinchapi.concourse.thrift.TObject> __this__values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.values.add(elem);
}
public List<com.cinchapi.concourse.thrift.TObject> getValues() {
return this.values;
}
public findKeyOperatorValuesTimestr_args setValues(List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>)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<Object> list = new ArrayList<Object>();
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<findKeyOperatorValuesTimestr_args> {
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 _list2486 = iprot.readListBegin();
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2486.size);
com.cinchapi.concourse.thrift.TObject _elem2487;
for (int _i2488 = 0; _i2488 < _list2486.size; ++_i2488)
{
_elem2487 = new com.cinchapi.concourse.thrift.TObject();
_elem2487.read(iprot);
struct.values.add(_elem2487);
}
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 _iter2489 : struct.values)
{
_iter2489.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<findKeyOperatorValuesTimestr_args> {
@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 _iter2490 : struct.values)
{
_iter2490.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 _list2491 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2491.size);
com.cinchapi.concourse.thrift.TObject _elem2492;
for (int _i2493 = 0; _i2493 < _list2491.size; ++_i2493)
{
_elem2492 = new com.cinchapi.concourse.thrift.TObject();
_elem2492.read(iprot);
struct.values.add(_elem2492);
}
}
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<findKeyOperatorValuesTimestr_result, findKeyOperatorValuesTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorValuesTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findKeyOperatorValuesTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findKeyOperatorValuesTimestr_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findKeyOperatorValuesTimestr_result(findKeyOperatorValuesTimestr_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findKeyOperatorValuesTimestr_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findKeyOperatorValuesTimestr_result> {
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 _set2494 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set2494.size);
long _elem2495;
for (int _i2496 = 0; _i2496 < _set2494.size; ++_i2496)
{
_elem2495 = iprot.readI64();
struct.success.add(_elem2495);
}
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 _iter2497 : struct.success)
{
oprot.writeI64(_iter2497);
}
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<findKeyOperatorValuesTimestr_result> {
@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 _iter2498 : struct.success)
{
oprot.writeI64(_iter2498);
}
}
}
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 _set2499 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set2499.size);
long _elem2500;
for (int _i2501 = 0; _i2501 < _set2499.size; ++_i2501)
{
_elem2500 = iprot.readI64();
struct.success.add(_elem2500);
}
}
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<findKeyOperatorstrValues_args, findKeyOperatorstrValues_args._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorstrValues_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.TObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<com.cinchapi.concourse.thrift.TObject> 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 <i>other</i>.
*/
public findKeyOperatorstrValues_args(findKeyOperatorstrValues_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetOperator()) {
this.operator = other.operator;
}
if (other.isSetValues()) {
List<com.cinchapi.concourse.thrift.TObject> __this__values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.values.add(elem);
}
public List<com.cinchapi.concourse.thrift.TObject> getValues() {
return this.values;
}
public findKeyOperatorstrValues_args setValues(List<com.cinchapi.concourse.thrift.TObject> 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<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 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<Object> list = new ArrayList<Object>();
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<findKeyOperatorstrValues_args> {
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 _list2502 = iprot.readListBegin();
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2502.size);
com.cinchapi.concourse.thrift.TObject _elem2503;
for (int _i2504 = 0; _i2504 < _list2502.size; ++_i2504)
{
_elem2503 = new com.cinchapi.concourse.thrift.TObject();
_elem2503.read(iprot);
struct.values.add(_elem2503);
}
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 _iter2505 : struct.values)
{
_iter2505.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<findKeyOperatorstrValues_args> {
@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 _iter2506 : struct.values)
{
_iter2506.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 _list2507 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2507.size);
com.cinchapi.concourse.thrift.TObject _elem2508;
for (int _i2509 = 0; _i2509 < _list2507.size; ++_i2509)
{
_elem2508 = new com.cinchapi.concourse.thrift.TObject();
_elem2508.read(iprot);
struct.values.add(_elem2508);
}
}
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<findKeyOperatorstrValues_result, findKeyOperatorstrValues_result._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorstrValues_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findKeyOperatorstrValues_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findKeyOperatorstrValues_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findKeyOperatorstrValues_result(findKeyOperatorstrValues_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findKeyOperatorstrValues_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findKeyOperatorstrValues_result> {
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 _set2510 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set2510.size);
long _elem2511;
for (int _i2512 = 0; _i2512 < _set2510.size; ++_i2512)
{
_elem2511 = iprot.readI64();
struct.success.add(_elem2511);
}
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 _iter2513 : struct.success)
{
oprot.writeI64(_iter2513);
}
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<findKeyOperatorstrValues_result> {
@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 _iter2514 : struct.success)
{
oprot.writeI64(_iter2514);
}
}
}
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 _set2515 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set2515.size);
long _elem2516;
for (int _i2517 = 0; _i2517 < _set2515.size; ++_i2517)
{
_elem2516 = iprot.readI64();
struct.success.add(_elem2516);
}
}
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<findKeyOperatorstrValuesTime_args, findKeyOperatorstrValuesTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorstrValuesTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.TObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<com.cinchapi.concourse.thrift.TObject> 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 <i>other</i>.
*/
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<com.cinchapi.concourse.thrift.TObject> __this__values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.values.add(elem);
}
public List<com.cinchapi.concourse.thrift.TObject> getValues() {
return this.values;
}
public findKeyOperatorstrValuesTime_args setValues(List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>)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<Object> list = new ArrayList<Object>();
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<findKeyOperatorstrValuesTime_args> {
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 _list2518 = iprot.readListBegin();
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2518.size);
com.cinchapi.concourse.thrift.TObject _elem2519;
for (int _i2520 = 0; _i2520 < _list2518.size; ++_i2520)
{
_elem2519 = new com.cinchapi.concourse.thrift.TObject();
_elem2519.read(iprot);
struct.values.add(_elem2519);
}
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 _iter2521 : struct.values)
{
_iter2521.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<findKeyOperatorstrValuesTime_args> {
@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 _iter2522 : struct.values)
{
_iter2522.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 _list2523 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2523.size);
com.cinchapi.concourse.thrift.TObject _elem2524;
for (int _i2525 = 0; _i2525 < _list2523.size; ++_i2525)
{
_elem2524 = new com.cinchapi.concourse.thrift.TObject();
_elem2524.read(iprot);
struct.values.add(_elem2524);
}
}
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<findKeyOperatorstrValuesTime_result, findKeyOperatorstrValuesTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorstrValuesTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTime_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTime_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findKeyOperatorstrValuesTime_result(findKeyOperatorstrValuesTime_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findKeyOperatorstrValuesTime_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findKeyOperatorstrValuesTime_result> {
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 _set2526 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set2526.size);
long _elem2527;
for (int _i2528 = 0; _i2528 < _set2526.size; ++_i2528)
{
_elem2527 = iprot.readI64();
struct.success.add(_elem2527);
}
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 _iter2529 : struct.success)
{
oprot.writeI64(_iter2529);
}
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<findKeyOperatorstrValuesTime_result> {
@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 _iter2530 : struct.success)
{
oprot.writeI64(_iter2530);
}
}
}
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 _set2531 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set2531.size);
long _elem2532;
for (int _i2533 = 0; _i2533 < _set2531.size; ++_i2533)
{
_elem2532 = iprot.readI64();
struct.success.add(_elem2532);
}
}
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<findKeyOperatorstrValuesTimestr_args, findKeyOperatorstrValuesTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorstrValuesTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<com.cinchapi.concourse.thrift.TObject> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<com.cinchapi.concourse.thrift.TObject> 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 <i>other</i>.
*/
public findKeyOperatorstrValuesTimestr_args(findKeyOperatorstrValuesTimestr_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetOperator()) {
this.operator = other.operator;
}
if (other.isSetValues()) {
List<com.cinchapi.concourse.thrift.TObject> __this__values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(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<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>();
}
this.values.add(elem);
}
public List<com.cinchapi.concourse.thrift.TObject> getValues() {
return this.values;
}
public findKeyOperatorstrValuesTimestr_args setValues(List<com.cinchapi.concourse.thrift.TObject> 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<com.cinchapi.concourse.thrift.TObject>)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<Object> list = new ArrayList<Object>();
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<findKeyOperatorstrValuesTimestr_args> {
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 _list2534 = iprot.readListBegin();
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2534.size);
com.cinchapi.concourse.thrift.TObject _elem2535;
for (int _i2536 = 0; _i2536 < _list2534.size; ++_i2536)
{
_elem2535 = new com.cinchapi.concourse.thrift.TObject();
_elem2535.read(iprot);
struct.values.add(_elem2535);
}
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 _iter2537 : struct.values)
{
_iter2537.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<findKeyOperatorstrValuesTimestr_args> {
@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 _iter2538 : struct.values)
{
_iter2538.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 _list2539 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32());
struct.values = new ArrayList<com.cinchapi.concourse.thrift.TObject>(_list2539.size);
com.cinchapi.concourse.thrift.TObject _elem2540;
for (int _i2541 = 0; _i2541 < _list2539.size; ++_i2541)
{
_elem2540 = new com.cinchapi.concourse.thrift.TObject();
_elem2540.read(iprot);
struct.values.add(_elem2540);
}
}
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<findKeyOperatorstrValuesTimestr_result, findKeyOperatorstrValuesTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<findKeyOperatorstrValuesTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new findKeyOperatorstrValuesTimestr_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new findKeyOperatorstrValuesTimestr_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public findKeyOperatorstrValuesTimestr_result(findKeyOperatorstrValuesTimestr_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public findKeyOperatorstrValuesTimestr_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<findKeyOperatorstrValuesTimestr_result> {
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 _set2542 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(2*_set2542.size);
long _elem2543;
for (int _i2544 = 0; _i2544 < _set2542.size; ++_i2544)
{
_elem2543 = iprot.readI64();
struct.success.add(_elem2543);
}
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 _iter2545 : struct.success)
{
oprot.writeI64(_iter2545);
}
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<findKeyOperatorstrValuesTimestr_result> {
@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 _iter2546 : struct.success)
{
oprot.writeI64(_iter2546);
}
}
}
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 _set2547 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(2*_set2547.size);
long _elem2548;
for (int _i2549 = 0; _i2549 < _set2547.size; ++_i2549)
{
_elem2548 = iprot.readI64();
struct.success.add(_elem2548);
}
}
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<search_args, search_args._Fields>, java.io.Serializable, Cloneable, Comparable<search_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<search_args> {
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<search_args> {
@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<search_result, search_result._Fields>, java.io.Serializable, Cloneable, Comparable<search_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new search_resultStandardSchemeFactory());
schemes.put(TupleScheme.class, new search_resultTupleSchemeFactory());
}
public Set<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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 0: // SUCCESS
return SUCCESS;
case 1: // EX
return EX;
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<Long> 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 <i>other</i>.
*/
public search_result(search_result other) {
if (other.isSetSuccess()) {
Set<Long> __this__success = new LinkedHashSet<Long>(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<Long> getSuccessIterator() {
return (this.success == null) ? null : this.success.iterator();
}
public void addToSuccess(long elem) {
if (this.success == null) {
this.success = new LinkedHashSet<Long>();
}
this.success.add(elem);
}
public Set<Long> getSuccess() {
return this.success;
}
public search_result setSuccess(Set<Long> 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<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 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<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_ex = true && (isSetEx());
list.add(present_ex);
if (present_ex)
list.add(ex);
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<search_result> {
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 _set2550 = iprot.readSetBegin();
struct.success = new LinkedHashSet<Long>(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;
default:
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
}
iprot.readFieldEnd();
}
iprot.readStructEnd();
// check for required 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 _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();
}
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<search_result> {
@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 _iter2554 : struct.success)
{
oprot.writeI64(_iter2554);
}
}
}
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 _set2555 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.success = new LinkedHashSet<Long>(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);
}
}
}
}
public static class revertKeysRecordsTime_args implements org.apache.thrift.TBase<revertKeysRecordsTime_args, revertKeysRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new revertKeysRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new revertKeysRecordsTime_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public revertKeysRecordsTime_args(revertKeysRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public revertKeysRecordsTime_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public revertKeysRecordsTime_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<revertKeysRecordsTime_args> {
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 _list2558 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2558.size);
String _elem2559;
for (int _i2560 = 0; _i2560 < _list2558.size; ++_i2560)
{
_elem2559 = iprot.readString();
struct.keys.add(_elem2559);
}
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 _list2561 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2561.size);
long _elem2562;
for (int _i2563 = 0; _i2563 < _list2561.size; ++_i2563)
{
_elem2562 = iprot.readI64();
struct.records.add(_elem2562);
}
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 _iter2564 : struct.keys)
{
oprot.writeString(_iter2564);
}
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 _iter2565 : struct.records)
{
oprot.writeI64(_iter2565);
}
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<revertKeysRecordsTime_args> {
@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 _iter2566 : struct.keys)
{
oprot.writeString(_iter2566);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter2567 : struct.records)
{
oprot.writeI64(_iter2567);
}
}
}
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 _list2568 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2568.size);
String _elem2569;
for (int _i2570 = 0; _i2570 < _list2568.size; ++_i2570)
{
_elem2569 = iprot.readString();
struct.keys.add(_elem2569);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list2571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2571.size);
long _elem2572;
for (int _i2573 = 0; _i2573 < _list2571.size; ++_i2573)
{
_elem2572 = iprot.readI64();
struct.records.add(_elem2572);
}
}
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<revertKeysRecordsTime_result, revertKeysRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeysRecordsTime_result> {
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<revertKeysRecordsTime_result> {
@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<revertKeysRecordsTimestr_args, revertKeysRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new revertKeysRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new revertKeysRecordsTimestr_argsTupleSchemeFactory());
}
public List<String> keys; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> keys,
List<Long> 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 <i>other</i>.
*/
public revertKeysRecordsTimestr_args(revertKeysRecordsTimestr_args other) {
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(other.keys);
this.keys = __this__keys;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public revertKeysRecordsTimestr_args setKeys(List<String> 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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public revertKeysRecordsTimestr_args setRecords(List<Long> 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<String>)value);
}
break;
case RECORDS:
if (value == null) {
unsetRecords();
} else {
setRecords((List<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 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<Object> list = new ArrayList<Object>();
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<revertKeysRecordsTimestr_args> {
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 _list2574 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2574.size);
String _elem2575;
for (int _i2576 = 0; _i2576 < _list2574.size; ++_i2576)
{
_elem2575 = iprot.readString();
struct.keys.add(_elem2575);
}
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 _list2577 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2577.size);
long _elem2578;
for (int _i2579 = 0; _i2579 < _list2577.size; ++_i2579)
{
_elem2578 = iprot.readI64();
struct.records.add(_elem2578);
}
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 _iter2580 : struct.keys)
{
oprot.writeString(_iter2580);
}
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 _iter2581 : struct.records)
{
oprot.writeI64(_iter2581);
}
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<revertKeysRecordsTimestr_args> {
@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 _iter2582 : struct.keys)
{
oprot.writeString(_iter2582);
}
}
}
if (struct.isSetRecords()) {
{
oprot.writeI32(struct.records.size());
for (long _iter2583 : struct.records)
{
oprot.writeI64(_iter2583);
}
}
}
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 _list2584 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2584.size);
String _elem2585;
for (int _i2586 = 0; _i2586 < _list2584.size; ++_i2586)
{
_elem2585 = iprot.readString();
struct.keys.add(_elem2585);
}
}
struct.setKeysIsSet(true);
}
if (incoming.get(1)) {
{
org.apache.thrift.protocol.TList _list2587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2587.size);
long _elem2588;
for (int _i2589 = 0; _i2589 < _list2587.size; ++_i2589)
{
_elem2588 = iprot.readI64();
struct.records.add(_elem2588);
}
}
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<revertKeysRecordsTimestr_result, revertKeysRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeysRecordsTimestr_result> {
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<revertKeysRecordsTimestr_result> {
@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<revertKeysRecordTime_args, revertKeysRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new revertKeysRecordTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new revertKeysRecordTime_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public revertKeysRecordTime_args(revertKeysRecordTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public revertKeysRecordTime_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<revertKeysRecordTime_args> {
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 _list2590 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_list2590.size);
String _elem2591;
for (int _i2592 = 0; _i2592 < _list2590.size; ++_i2592)
{
_elem2591 = iprot.readString();
struct.keys.add(_elem2591);
}
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 _iter2593 : struct.keys)
{
oprot.writeString(_iter2593);
}
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<revertKeysRecordTime_args> {
@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 _iter2594 : struct.keys)
{
oprot.writeString(_iter2594);
}
}
}
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 _list2595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2595.size);
String _elem2596;
for (int _i2597 = 0; _i2597 < _list2595.size; ++_i2597)
{
_elem2596 = iprot.readString();
struct.keys.add(_elem2596);
}
}
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<revertKeysRecordTime_result, revertKeysRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeysRecordTime_result> {
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<revertKeysRecordTime_result> {
@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<revertKeysRecordTimestr_args, revertKeysRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new revertKeysRecordTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new revertKeysRecordTimestr_argsTupleSchemeFactory());
}
public List<String> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<String> 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 <i>other</i>.
*/
public revertKeysRecordTimestr_args(revertKeysRecordTimestr_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKeys()) {
List<String> __this__keys = new ArrayList<String>(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<String> getKeysIterator() {
return (this.keys == null) ? null : this.keys.iterator();
}
public void addToKeys(String elem) {
if (this.keys == null) {
this.keys = new ArrayList<String>();
}
this.keys.add(elem);
}
public List<String> getKeys() {
return this.keys;
}
public revertKeysRecordTimestr_args setKeys(List<String> 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<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 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<Object> list = new ArrayList<Object>();
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<revertKeysRecordTimestr_args> {
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 _list2598 = iprot.readListBegin();
struct.keys = new ArrayList<String>(_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: // 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 _iter2601 : struct.keys)
{
oprot.writeString(_iter2601);
}
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<revertKeysRecordTimestr_args> {
@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 _iter2602 : struct.keys)
{
oprot.writeString(_iter2602);
}
}
}
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 _list2603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
struct.keys = new ArrayList<String>(_list2603.size);
String _elem2604;
for (int _i2605 = 0; _i2605 < _list2603.size; ++_i2605)
{
_elem2604 = iprot.readString();
struct.keys.add(_elem2604);
}
}
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<revertKeysRecordTimestr_result, revertKeysRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeysRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeysRecordTimestr_result> {
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<revertKeysRecordTimestr_result> {
@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<revertKeyRecordsTime_args, revertKeyRecordsTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordsTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new revertKeyRecordsTime_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new revertKeyRecordsTime_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public revertKeyRecordsTime_args(revertKeyRecordsTime_args other) {
__isset_bitfield = other.__isset_bitfield;
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public revertKeyRecordsTime_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<revertKeyRecordsTime_args> {
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 _list2606 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2606.size);
long _elem2607;
for (int _i2608 = 0; _i2608 < _list2606.size; ++_i2608)
{
_elem2607 = iprot.readI64();
struct.records.add(_elem2607);
}
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 _iter2609 : struct.records)
{
oprot.writeI64(_iter2609);
}
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<revertKeyRecordsTime_args> {
@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 _iter2610 : struct.records)
{
oprot.writeI64(_iter2610);
}
}
}
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 _list2611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_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.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<revertKeyRecordsTime_result, revertKeyRecordsTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordsTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeyRecordsTime_result> {
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<revertKeyRecordsTime_result> {
@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<revertKeyRecordsTimestr_args, revertKeyRecordsTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordsTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new revertKeyRecordsTimestr_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new revertKeyRecordsTimestr_argsTupleSchemeFactory());
}
public String key; // required
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public revertKeyRecordsTimestr_args(revertKeyRecordsTimestr_args other) {
if (other.isSetKey()) {
this.key = other.key;
}
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public revertKeyRecordsTimestr_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<revertKeyRecordsTimestr_args> {
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 _list2614 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2614.size);
long _elem2615;
for (int _i2616 = 0; _i2616 < _list2614.size; ++_i2616)
{
_elem2615 = iprot.readI64();
struct.records.add(_elem2615);
}
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 _iter2617 : struct.records)
{
oprot.writeI64(_iter2617);
}
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<revertKeyRecordsTimestr_args> {
@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 _iter2618 : struct.records)
{
oprot.writeI64(_iter2618);
}
}
}
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 _list2619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2619.size);
long _elem2620;
for (int _i2621 = 0; _i2621 < _list2619.size; ++_i2621)
{
_elem2620 = iprot.readI64();
struct.records.add(_elem2620);
}
}
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<revertKeyRecordsTimestr_result, revertKeyRecordsTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordsTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeyRecordsTimestr_result> {
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<revertKeyRecordsTimestr_result> {
@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<revertKeyRecordTime_args, revertKeyRecordTime_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordTime_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeyRecordTime_args> {
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<revertKeyRecordTime_args> {
@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<revertKeyRecordTime_result, revertKeyRecordTime_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordTime_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeyRecordTime_result> {
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<revertKeyRecordTime_result> {
@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<revertKeyRecordTimestr_args, revertKeyRecordTimestr_args._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordTimestr_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeyRecordTimestr_args> {
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<revertKeyRecordTimestr_args> {
@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<revertKeyRecordTimestr_result, revertKeyRecordTimestr_result._Fields>, java.io.Serializable, Cloneable, Comparable<revertKeyRecordTimestr_result> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // EX
return EX;
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 <i>other</i>.
*/
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<Object> list = new ArrayList<Object>();
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<revertKeyRecordTimestr_result> {
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<revertKeyRecordTimestr_result> {
@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<pingRecords_args, pingRecords_args._Fields>, java.io.Serializable, Cloneable, Comparable<pingRecords_args> {
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<Class<? extends IScheme>, SchemeFactory> schemes = new LinkedHashMap<Class<? extends IScheme>, SchemeFactory>();
static {
schemes.put(StandardScheme.class, new pingRecords_argsStandardSchemeFactory());
schemes.put(TupleScheme.class, new pingRecords_argsTupleSchemeFactory());
}
public List<Long> 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<String, _Fields> byName = new LinkedHashMap<String, _Fields>();
static {
for (_Fields field : EnumSet.allOf(_Fields.class)) {
byName.put(field.getFieldName(), field);
}
}
/**
* Find the _Fields constant that matches fieldId, or null if its not found.
*/
public static _Fields findByThriftId(int fieldId) {
switch(fieldId) {
case 1: // 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<Long> 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 <i>other</i>.
*/
public pingRecords_args(pingRecords_args other) {
if (other.isSetRecords()) {
List<Long> __this__records = new ArrayList<Long>(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<Long> getRecordsIterator() {
return (this.records == null) ? null : this.records.iterator();
}
public void addToRecords(long elem) {
if (this.records == null) {
this.records = new ArrayList<Long>();
}
this.records.add(elem);
}
public List<Long> getRecords() {
return this.records;
}
public pingRecords_args setRecords(List<Long> 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<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 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<Object> list = new ArrayList<Object>();
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<pingRecords_args> {
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 _list2622 = iprot.readListBegin();
struct.records = new ArrayList<Long>(_list2622.size);
long _elem2623;
for (int _i2624 = 0; _i2624 < _list2622.size; ++_i2624)
{
_elem2623 = iprot.readI64();
struct.records.add(_elem2623);
}
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 _iter2625 : struct.records)
{
oprot.writeI64(_iter2625);
}
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<pingRecords_args> {
@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 _iter2626 : struct.records)
{
oprot.writeI64(_iter2626);
}
}
}
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 _list2627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32());
struct.records = new ArrayList<Long>(_list2627.size);
long _elem2628;
for (int _i2629 = 0; _i2629 <